Fix crash caused by pop sorting with deleted message
This commit is contained in:
parent
d147291e2a
commit
f8bce05dd6
@ -487,8 +487,8 @@ void clear()
|
||||
while (!g_all_messages.getData().empty())
|
||||
{
|
||||
Message* msg = g_all_messages.getData().top();
|
||||
delete msg;
|
||||
g_all_messages.getData().pop();
|
||||
delete msg;
|
||||
}
|
||||
g_all_messages.unlock();
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user