2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

A couple of rare crashes fixed.

This commit is contained in:
John Preston
2016-07-29 17:33:49 +01:00
parent 4b9b9e2e13
commit 0291888c01
3 changed files with 6 additions and 3 deletions

View File

@@ -3742,7 +3742,10 @@ int32 MainWidget::dlgsWidth() const {
MainWidget::~MainWidget() {
if (App::main() == this) _history->showHistory(0, 0);
delete _hider;
if (HistoryHider *hider = _hider) {
_hider = nullptr;
delete hider;
}
MTP::clearGlobalHandlers();
if (App::wnd()) App::wnd()->noMain(this);