mirror of
https://github.com/vale981/tdesktop
synced 2025-03-09 12:36:39 -04:00
fixed crash in groups uniting
This commit is contained in:
parent
c0e7019d4f
commit
22aef5290f
1 changed files with 1 additions and 6 deletions
|
@ -1987,12 +1987,7 @@ void History::addOlderSlice(const QVector<MTPMessage> &slice, const QVector<MTPM
|
||||||
|
|
||||||
while (till && prev && till->type() == HistoryItemGroup && prev->type() == HistoryItemGroup) {
|
while (till && prev && till->type() == HistoryItemGroup && prev->type() == HistoryItemGroup) {
|
||||||
static_cast<HistoryGroup*>(prev)->uniteWith(static_cast<HistoryGroup*>(till));
|
static_cast<HistoryGroup*>(prev)->uniteWith(static_cast<HistoryGroup*>(till));
|
||||||
till->detach();
|
till->destroy();
|
||||||
delete till;
|
|
||||||
if (blocks.front()->items.isEmpty()) {
|
|
||||||
delete blocks.front();
|
|
||||||
blocks.pop_front();
|
|
||||||
}
|
|
||||||
till = blocks.isEmpty() ? 0 : blocks.front()->items.front();
|
till = blocks.isEmpty() ? 0 : blocks.front()->items.front();
|
||||||
}
|
}
|
||||||
if (till && prev && prev->date.date() != till->date.date()) {
|
if (till && prev && prev->date.date() != till->date.date()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue