From 7b7df23e3b21b782bfc6fe0001ae5a6b08a006da Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 5 Apr 2017 13:39:31 +0300 Subject: [PATCH] Version 1.0.29: Fix crash on app quit. Some cleanup actions in App::clearHistories() queue file loader destructions that should be completed before MTProto is reset. --- Telegram/SourceFiles/messenger.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/messenger.cpp b/Telegram/SourceFiles/messenger.cpp index d6272576c4..ea7803f09f 100644 --- a/Telegram/SourceFiles/messenger.cpp +++ b/Telegram/SourceFiles/messenger.cpp @@ -696,8 +696,8 @@ void Messenger::prepareToDestroy() { _window.reset(); // Some MTP requests can be cancelled from data clearing. - _delayedDestroyedLoaders.clear(); App::clearHistories(); + _delayedDestroyedLoaders.clear(); authSessionDestroy(); _mtproto.reset();