diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-10-08 13:08:27 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-08 13:08:27 (GMT) |
commit | ae56c60b12daaa5024795686ffc93310f698d7b8 (patch) | |
tree | 07c05de9a7224fa845989238a88bd012be5603e0 /Swift/Controllers/Chat/ChatsManager.cpp | |
parent | 49ecb4179004a209bc699ff6fc58c6ff61047a0b (diff) | |
download | swift-contrib-ae56c60b12daaa5024795686ffc93310f698d7b8.zip swift-contrib-ae56c60b12daaa5024795686ffc93310f698d7b8.tar.bz2 |
Fixing assorted memory leaks.
Resolves: #329
Diffstat (limited to 'Swift/Controllers/Chat/ChatsManager.cpp')
-rw-r--r-- | Swift/Controllers/Chat/ChatsManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatsManager.cpp b/Swift/Controllers/Chat/ChatsManager.cpp index d3bc6ce..c8f2f78 100644 --- a/Swift/Controllers/Chat/ChatsManager.cpp +++ b/Swift/Controllers/Chat/ChatsManager.cpp @@ -183,6 +183,7 @@ ChatController* ChatsManager::getChatControllerOrFindAnother(const JID &contact) } ChatController* ChatsManager::createNewChatController(const JID& contact) { + assert(chatControllers_.find(contact) == chatControllers_.end()); ChatController* controller = new ChatController(jid_, stanzaChannel_, iqRouter_, chatWindowFactory_, contact, nickResolver_, presenceOracle_, avatarManager_, mucRegistry_->isMUC(contact.toBare()), useDelayForLatency_, uiEventStream_, eventController_, timerFactory_, entityCapsManager_); chatControllers_[contact] = controller; controller->setAvailableServerFeatures(serverDiscoInfo_); |