summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-27 20:22:11 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-27 20:22:11 (GMT)
commit1bebb9b3b5d19fd5bfcc0621658a79283e2090db (patch)
tree73caa9fbe77ac7ff00ff6dcad3da1ae857cd656c /Swift
parent2437e403c850c9592fe0fd286398b76d2b27a1b6 (diff)
downloadswift-1bebb9b3b5d19fd5bfcc0621658a79283e2090db.zip
swift-1bebb9b3b5d19fd5bfcc0621658a79283e2090db.tar.bz2
Fix destruction order in unit tests.
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp2
-rw-r--r--Swift/Controllers/UnitTest/RosterControllerTest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp b/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp
index 9c1cc36..042b7c6 100644
--- a/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp
+++ b/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp
@@ -98,8 +98,8 @@ public:
delete mucRegistry_;
delete stanzaChannel_;
delete eventController_;
- delete iqChannel_;
delete iqRouter_;
+ delete iqChannel_;
delete uiEventStream_;
delete mucManager_;
delete xmppRoster_;
diff --git a/Swift/Controllers/UnitTest/RosterControllerTest.cpp b/Swift/Controllers/UnitTest/RosterControllerTest.cpp
index df93ca5..fb61820 100644
--- a/Swift/Controllers/UnitTest/RosterControllerTest.cpp
+++ b/Swift/Controllers/UnitTest/RosterControllerTest.cpp
@@ -80,8 +80,8 @@ class RosterControllerTest : public CppUnit::TestFixture
delete mucRegistry_;
delete mainWindowFactory_;
delete avatarManager_;
- delete channel_;
delete router_;
+ delete channel_;
delete eventController_;
delete subscriptionManager_;
delete presenceOracle_;