From 7b498506b866c7076c7529082a5a037696307515 Mon Sep 17 00:00:00 2001 From: nakst <> Date: Sun, 26 Sep 2021 18:49:18 +0100 Subject: [PATCH] fix memory leak --- desktop/gui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop/gui.cpp b/desktop/gui.cpp index ff98a23..a9320ef 100644 --- a/desktop/gui.cpp +++ b/desktop/gui.cpp @@ -765,6 +765,7 @@ void UIWindowDestroy(EsWindow *window) { EsSyscall(ES_SYSCALL_WINDOW_CLOSE, window->handle, 0, 0, 0); EsHandleClose(window->handle); window->checkVisible.Free(); + window->sizeAlternatives.Free(); EsAssert(!window->dialogs.Length()); window->dialogs.Free(); window->handle = ES_INVALID_HANDLE;