diff --git a/Telegram/SourceFiles/history.cpp b/Telegram/SourceFiles/history.cpp index 305a312e1..a6bb9511b 100644 --- a/Telegram/SourceFiles/history.cpp +++ b/Telegram/SourceFiles/history.cpp @@ -1911,12 +1911,7 @@ void History::addOlderSlice(const QVector &slice, const QVectortype() == HistoryItemGroup && prev->type() == HistoryItemGroup) { static_cast(prev)->uniteWith(static_cast(till)); - till->detach(); - delete till; - if (blocks.front()->items.isEmpty()) { - delete blocks.front(); - blocks.pop_front(); - } + till->destroy(); till = blocks.isEmpty() ? 0 : blocks.front()->items.front(); } if (till && prev && prev->date.date() != till->date.date()) { diff --git a/Telegram/Telegram.rc b/Telegram/Telegram.rc index da9e0cb32..47e1ea11c 100644 Binary files a/Telegram/Telegram.rc and b/Telegram/Telegram.rc differ diff --git a/Telegram/Updater.rc b/Telegram/Updater.rc index b55372ad8..4c166b940 100644 Binary files a/Telegram/Updater.rc and b/Telegram/Updater.rc differ