From 9fe15d5e2d57282f987dfe584395c16a6b9cd6f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20Badea?= <catalin.badea392@gmail.com> Date: Mon, 24 Sep 2012 23:05:56 +0300 Subject: Fix a crash that occurs when resetting the client Fix history view controller from crashing when resetting the client. License: This patch is BSD-licensed, see Documentation/Licenses/BSD-simplified.txt for details. diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 581ff31..1b0b595 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -230,10 +230,10 @@ void MainController::resetClient() { delete chatsManager_; chatsManager_ = NULL; #ifdef SWIFT_EXPERIMENTAL_HISTORY - delete historyController_; - historyController_ = NULL; delete historyViewController_; historyViewController_ = NULL; + delete historyController_; + historyController_ = NULL; #endif delete ftOverview_; ftOverview_ = NULL; -- cgit v0.10.2-6-g49f6