Remove cached icon earlier, to prevent double free crash on exit.

This commit is contained in:
bruvzg 2022-05-23 10:33:42 +03:00 committed by Relintai
parent 7fd0b29642
commit 780e820b67

View File

@ -1734,6 +1734,7 @@ void OS_Windows::finalize() {
memdelete(input);
touch_state.clear();
icon.unref();
cursors_cache.clear();
visual_server->finish();
memdelete(visual_server);