Fixed SIGSEGV caused to references to already deleted data values in idWindow ops and updateVars

This commit is contained in:
Maksim Zinal 2018-11-05 17:36:56 +03:00 committed by Daniel Gibson
parent e93ba6ce0c
commit 75e9af81e1

View file

@ -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);