diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-22 19:58:45 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-22 19:58:45 (GMT) |
commit | fd7d3f4f994159a4990f3a0029597d4c14f727a9 (patch) | |
tree | 56286c8258cae942ae641235167b6dfdb512483a /Swift/Controllers/EventWindowController.cpp | |
parent | 7cac59f3ec12e3440341bb561ab3c8e6c3fe80e0 (diff) | |
download | swift-contrib-fd7d3f4f994159a4990f3a0029597d4c14f727a9.zip swift-contrib-fd7d3f4f994159a4990f3a0029597d4c14f727a9.tar.bz2 |
Fixed memory leaks and segfault on signout.
Diffstat (limited to 'Swift/Controllers/EventWindowController.cpp')
-rw-r--r-- | Swift/Controllers/EventWindowController.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Swift/Controllers/EventWindowController.cpp b/Swift/Controllers/EventWindowController.cpp index a8c8f11..18c37f4 100644 --- a/Swift/Controllers/EventWindowController.cpp +++ b/Swift/Controllers/EventWindowController.cpp @@ -18,8 +18,9 @@ EventWindowController::EventWindowController(EventController* eventController, E } EventWindowController::~EventWindowController() { - // Don't delete this, since Qt owns it - //delete window_; + if (window_->canDelete()) { + delete window_; + } } void EventWindowController::handleEventQueueEventAdded(boost::shared_ptr<StanzaEvent> event) { |