From f8bce05dd6b93bd5af06141d47194c3c6703c701 Mon Sep 17 00:00:00 2001 From: Benau Date: Tue, 4 Feb 2020 01:26:26 +0800 Subject: [PATCH] Fix crash caused by pop sorting with deleted message --- src/guiengine/message_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guiengine/message_queue.cpp b/src/guiengine/message_queue.cpp index c2da68aa9..4a4c387db 100644 --- a/src/guiengine/message_queue.cpp +++ b/src/guiengine/message_queue.cpp @@ -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