From 75e9af81e19a5adfa0ded55b11032b43954d8028 Mon Sep 17 00:00:00 2001 From: Maksim Zinal Date: Mon, 5 Nov 2018 17:36:56 +0300 Subject: [PATCH] Fixed SIGSEGV caused to references to already deleted data values in idWindow ops and updateVars --- neo/ui/Window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neo/ui/Window.cpp b/neo/ui/Window.cpp index 5658d0c9..2bdf96f1 100644 --- a/neo/ui/Window.cpp +++ b/neo/ui/Window.cpp @@ -251,6 +251,11 @@ void idWindow::CleanUp() { // Cleanup the named events namedEvents.DeleteContents(true); + // Cleanup the operations and update vars + // (if it is not fixed, orphane register references are possible) + ops.Clear(); + updateVars.Clear(); + drawWindows.Clear(); children.DeleteContents(true); definedVars.DeleteContents(true);