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

crash on close fixed

This commit is contained in:
John Preston
2015-12-28 20:23:27 +03:00
parent 9a3489694e
commit 43e173567f
3 changed files with 7 additions and 4 deletions

View File

@@ -2968,8 +2968,8 @@ void HistoryItem::setId(MsgId newId) {
HistoryItem::~HistoryItem() {
App::historyUnregItem(this);
if (id < 0) {
App::app()->uploader()->cancel(fullId());
if (id < 0 && App::uploader()) {
App::uploader()->cancel(fullId());
}
}