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
parent be5f1dac91
commit 00b731da28

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