diff --git a/main/main.cpp b/main/main.cpp index b53e9ef0f7c..5648676c4c2 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1871,6 +1871,7 @@ void Main::cleanup() { if (engine) memdelete(engine); + message_queue->flush(); memdelete(message_queue); unregister_core_driver_types();