aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-13 10:59:42 +0200
committerMartin Kiewitz2015-06-13 10:59:42 +0200
commitcf4cf41e9509b15879f7fd99b15939e954c6b06c (patch)
treeef7fc00737301bf1fb9054dbd1a13f20b9e076e8 /engines/sherlock
parent916bce0340b372288271a45ebc4d691ad513ac0a (diff)
downloadscummvm-rg350-cf4cf41e9509b15879f7fd99b15939e954c6b06c.tar.gz
scummvm-rg350-cf4cf41e9509b15879f7fd99b15939e954c6b06c.tar.bz2
scummvm-rg350-cf4cf41e9509b15879f7fd99b15939e954c6b06c.zip
SHERLOCK: fix delete[] inside room loader
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/scene.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index 760307f31a..15464f569f 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -495,7 +495,7 @@ bool Scene::loadScene(const Common::String &filename) {
}
delete cAnimStream;
- delete cAnimOffsetTablePtr;
+ delete[] cAnimOffsetTablePtr;
}
@@ -738,7 +738,7 @@ bool Scene::loadScene(const Common::String &filename) {
}
delete cAnimStream;
- delete cAnimOffsetTablePtr;
+ delete[] cAnimOffsetTablePtr;
}
// === BOUNDING AREAS === Read in the room bounding areas