diff options
author | Strangerke | 2015-12-21 01:44:29 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:35:33 +0100 |
commit | 9b6851c1a73b57c262148a2d96ca7c07e32f96a5 (patch) | |
tree | 3ac395cd1bcedc0e80ad85f6b2f47272a204187c | |
parent | fa222f0ca878b3bf55b439ccf0e1e0849cecfe63 (diff) | |
download | scummvm-rg350-9b6851c1a73b57c262148a2d96ca7c07e32f96a5.tar.gz scummvm-rg350-9b6851c1a73b57c262148a2d96ca7c07e32f96a5.tar.bz2 scummvm-rg350-9b6851c1a73b57c262148a2d96ca7c07e32f96a5.zip |
LAB: Safeguard: Set some variables to null pointer after deleting them
-rw-r--r-- | engines/lab/engine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp index 6cf86c2a12..ad9cd9ba6c 100644 --- a/engines/lab/engine.cpp +++ b/engines/lab/engine.cpp @@ -549,6 +549,11 @@ void LabEngine::mainGameLoop() { delete _roomsFound; delete[] _rooms; delete[] _inventory; + + _conditions = nullptr; + _roomsFound = nullptr; + _rooms = nullptr; + _inventory = nullptr; } void LabEngine::showLab2Teaser() { |