From e528cadc4dd8961301fc84ff9a8b07999b1bf515 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be> Date: Fri, 9 Apr 2010 09:41:49 +0200 Subject: Avoid memory leak in Chats Manager Test. diff --git a/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp b/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp index ee6dcbb..d493cf6 100644 --- a/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp +++ b/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp @@ -76,6 +76,7 @@ public: delete nickResolver_; delete treeWidgetFactory_; delete stanzaChannel_; + delete eventController_; delete iqChannel_; delete iqRouter_; delete mocks_; @@ -199,13 +200,13 @@ public: } /** - Test that a second window isn't unbound where there's already an unbound one. - Bind 1 - Bind 2 - Unbind 1 - Unbind 2 (but it doesn't) - Sent to bound 2 - Rebind 1 + Test that a second window isn't unbound where there's already an unbound one. + Bind 1 + Bind 2 + Unbind 1 + Unbind 2 (but it doesn't) + Sent to bound 2 + Rebind 1 */ void testNoDuplicateUnbind() { JID messageJID1("testling@test.com/resource1"); -- cgit v0.10.2-6-g49f6