From 00b731da28f574af229cfdf969862aaecb198e5c 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 3de88f0b..410ea6cc 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);