diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-04-10 22:53:13 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-04-10 22:53:13 (GMT) |
commit | bb372f7a06b0163da7b1f2749e43ba7c8c1c0c5a (patch) | |
tree | 0754a2d7ca040aba3932b66fc9236117562d6b32 /Swift/Controllers/EventWindowController.cpp | |
parent | 995dc5b96429473761ff0a60982f0501cfa6ad6b (diff) | |
download | swift-contrib-bb372f7a06b0163da7b1f2749e43ba7c8c1c0c5a.zip swift-contrib-bb372f7a06b0163da7b1f2749e43ba7c8c1c0c5a.tar.bz2 |
Fix two segfaults on signout/signin.
Connections that don't go away when the slot is destroyed.
Resolves: #310
Diffstat (limited to 'Swift/Controllers/EventWindowController.cpp')
-rw-r--r-- | Swift/Controllers/EventWindowController.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/Controllers/EventWindowController.cpp b/Swift/Controllers/EventWindowController.cpp index 1cf3dec..22cfbb3 100644 --- a/Swift/Controllers/EventWindowController.cpp +++ b/Swift/Controllers/EventWindowController.cpp @@ -14,7 +14,8 @@ EventWindowController::EventWindowController(EventController* eventController, E eventController_ = eventController; windowFactory_ = windowFactory; window_ = windowFactory_->createEventWindow(); - eventController_->onEventQueueEventAdded.connect(boost::bind(&EventWindowController::handleEventQueueEventAdded, this, _1)); + printf("Got new window, pointer %d\n", (int)window_); + eventAddedConnection_ = eventController_->onEventQueueEventAdded.connect(boost::bind(&EventWindowController::handleEventQueueEventAdded, this, _1)); } EventWindowController::~EventWindowController() { |