You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Fix crash when closing the editor
This commit is contained in:
committed by
Rémi Verschelde
parent
fb0cd802c4
commit
ff59c562f7
@@ -1822,6 +1822,9 @@ void Main::cleanup() {
|
||||
|
||||
ERR_FAIL_COND(!_start_success);
|
||||
|
||||
message_queue->flush();
|
||||
memdelete(message_queue);
|
||||
|
||||
if (script_debugger) {
|
||||
if (use_debug_profiler) {
|
||||
script_debugger->profiling_end();
|
||||
@@ -1879,9 +1882,6 @@ void Main::cleanup() {
|
||||
if (engine)
|
||||
memdelete(engine);
|
||||
|
||||
message_queue->flush();
|
||||
memdelete(message_queue);
|
||||
|
||||
unregister_core_driver_types();
|
||||
unregister_core_types();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user