Version 1.0.29: Fix crash on app quit.

Destroy queued file loaders before destroying AuthSession, because
they have references to Downloader which is owned by AuthSession.
This commit is contained in:
John Preston 2017-04-05 13:04:26 +03:00
parent f4d1cdf14d
commit a1adf2dae6

View File

@ -696,9 +696,9 @@ void Messenger::prepareToDestroy() {
_window.reset();
// Some MTP requests can be cancelled from data clearing.
_delayedDestroyedLoaders.clear();
App::clearHistories();
authSessionDestroy();
_delayedDestroyedLoaders.clear();
_mtproto.reset();
_mtprotoForKeysDestroy.reset();