[Windows, 3.x] 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
parent 241c267d9c
commit c8978f58af

View file

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