Merge pull request #61304 from bruvzg/icon_unref

[Windows, 3.x] Remove cached icon earlier, to prevent double free crash on exit.
This commit is contained in:
Rémi Verschelde 2022-05-23 11:33:34 +02:00 committed by GitHub
commit 2e7939256f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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