aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2015-12-15 19:09:33 +0100
committerWillem Jan Palenstijn2015-12-23 21:34:05 +0100
commit75d1a3a22a03e6379a50c82811a52d35ab8d26c5 (patch)
treecbbb05e4daa44c84c1506a3077b7e947bafbaf3e
parentf791d690b2f97d5a1c49f28ef53ecf1a508b8ff6 (diff)
downloadscummvm-rg350-75d1a3a22a03e6379a50c82811a52d35ab8d26c5.tar.gz
scummvm-rg350-75d1a3a22a03e6379a50c82811a52d35ab8d26c5.tar.bz2
scummvm-rg350-75d1a3a22a03e6379a50c82811a52d35ab8d26c5.zip
LAB: Fix freePict as pointed by eriktorbjorn
-rw-r--r--engines/lab/dispman.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/lab/dispman.cpp b/engines/lab/dispman.cpp
index f35db01373..28d691a963 100644
--- a/engines/lab/dispman.cpp
+++ b/engines/lab/dispman.cpp
@@ -114,8 +114,8 @@ void DisplayMan::readPict(const char *filename, bool playOnce, bool onlyDiffData
}
void DisplayMan::freePict() {
- delete _curBitmap;
- _curBitmap = NULL;
+ delete[] _curBitmap;
+ _curBitmap = nullptr;
}
//---------------------------------------------------------------------------