From c8978f58afaedae4da328cce602d5d2bffe8e9cc Mon Sep 17 00:00:00 2001 From: bruvzg <7645683+bruvzg@users.noreply.github.com> Date: Mon, 23 May 2022 10:33:42 +0300 Subject: [PATCH] [Windows, 3.x] Remove cached icon earlier, to prevent double free crash on exit. --- platform/windows/os_windows.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index 7a56eb9be8a..46ac93ef8ef 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1757,6 +1757,7 @@ void OS_Windows::finalize() { memdelete(input); touch_state.clear(); + icon.unref(); cursors_cache.clear(); visual_server->finish(); memdelete(visual_server);