mirror of
https://github.com/dhewm/dhewm3.git
synced 2024-11-22 20:51:20 +00:00
Fixed SIGSEGV caused to references to already deleted data values in idWindow ops and updateVars
This commit is contained in:
parent
e93ba6ce0c
commit
75e9af81e1
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue