2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix crash in DocumentData destructor.

Keep AuthSession pointer in DocumentData for loader destruction.
This commit is contained in:
John Preston
2018-01-27 12:21:57 +03:00
parent 63c1212ef1
commit a858ab5d0b
8 changed files with 187 additions and 180 deletions

View File

@@ -252,7 +252,6 @@ private:
TimeMs _shouldLockAt = 0;
base::Timer _autoLockTimer;
const std::unique_ptr<Data::Session> _data;
const std::unique_ptr<ApiWrap> _api;
const std::unique_ptr<Calls::Instance> _calls;
const std::unique_ptr<Storage::Downloader> _downloader;
@@ -261,6 +260,9 @@ private:
const std::unique_ptr<Window::Notifications::System> _notifications;
const std::unique_ptr<Core::Changelogs> _changelogs;
// _data depends on _downloader / _uploader, including destructor.
const std::unique_ptr<Data::Session> _data;
rpl::lifetime _lifetime;
};