From 780e820b674f21c4b2b4128e9b538778a228c942 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] 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 01549995c..3050c4b8a 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -1734,6 +1734,7 @@ void OS_Windows::finalize() { memdelete(input); touch_state.clear(); + icon.unref(); cursors_cache.clear(); visual_server->finish(); memdelete(visual_server);