aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2015-12-21 01:44:29 +0100
committerWillem Jan Palenstijn2015-12-23 21:35:33 +0100
commit9b6851c1a73b57c262148a2d96ca7c07e32f96a5 (patch)
tree3ac395cd1bcedc0e80ad85f6b2f47272a204187c /engines
parentfa222f0ca878b3bf55b439ccf0e1e0849cecfe63 (diff)
downloadscummvm-rg350-9b6851c1a73b57c262148a2d96ca7c07e32f96a5.tar.gz
scummvm-rg350-9b6851c1a73b57c262148a2d96ca7c07e32f96a5.tar.bz2
scummvm-rg350-9b6851c1a73b57c262148a2d96ca7c07e32f96a5.zip
LAB: Safeguard: Set some variables to null pointer after deleting them
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/engine.cpp5
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() {