2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop into dev_private

This commit is contained in:
John Preston
2016-07-31 11:01:37 +01:00
11 changed files with 45 additions and 12 deletions

View File

@@ -3772,7 +3772,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);