summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-07-22 09:18:06 (GMT)
committerRichard Maudsley <richard.maudsley@isode.com>2014-07-22 09:20:54 (GMT)
commit9353d3c692e1cd37bdd15b8dbe75b92be5eaa1c0 (patch)
treeefb9c5532989fa71443f3ad79f4cbfd20d2ea8d7 /Swift/Controllers/MainController.cpp
parente3ff5f241bf6e41829d36502e75f585d9620737e (diff)
downloadswift-9353d3c692e1cd37bdd15b8dbe75b92be5eaa1c0.zip
swift-9353d3c692e1cd37bdd15b8dbe75b92be5eaa1c0.tar.bz2
Fix crash when performing blocking operations after fresh login.
Test-Information: Sign out and sign in again then try blocking a user and confirm that a crash occurs in the BlockListController. After the patch repeat sign out and sign in and confirm that crash nolonger occurs. Change-Id: I9812097fd34f188b2ebf1d8675e47c31fdafdc06
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r--Swift/Controllers/MainController.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp
index a16cbe7..95d8134 100644
--- a/Swift/Controllers/MainController.cpp
+++ b/Swift/Controllers/MainController.cpp
@@ -262,6 +262,8 @@ void MainController::resetClient() {
#endif
delete ftOverview_;
ftOverview_ = NULL;
+ delete blockListController_;
+ blockListController_ = NULL;
delete rosterController_;
rosterController_ = NULL;
delete eventNotifier_;