aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel/sched.cpp
diff options
context:
space:
mode:
authorMax Horn2010-11-01 21:06:04 +0000
committerMax Horn2010-11-01 21:06:04 +0000
commit9cadcf4c5b755adbdf8381bcdd82e14f097f2304 (patch)
tree7904817f501354a8952bf7aa33f865afc7f4c764 /engines/tinsel/sched.cpp
parent7f1a9699fa2489955f3839ccbd8dddad97d864ff (diff)
downloadscummvm-rg350-9cadcf4c5b755adbdf8381bcdd82e14f097f2304.tar.gz
scummvm-rg350-9cadcf4c5b755adbdf8381bcdd82e14f097f2304.tar.bz2
scummvm-rg350-9cadcf4c5b755adbdf8381bcdd82e14f097f2304.zip
TINSEL: Fix a leak in DW2, and a potential OOB in NextTaggedActor
svn-id: r54029
Diffstat (limited to 'engines/tinsel/sched.cpp')
-rw-r--r--engines/tinsel/sched.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/tinsel/sched.cpp b/engines/tinsel/sched.cpp
index 08a68d2d4a..d90312d271 100644
--- a/engines/tinsel/sched.cpp
+++ b/engines/tinsel/sched.cpp
@@ -760,6 +760,7 @@ void GlobalProcesses(uint32 numProcess, byte *pProcess) {
*/
void FreeGlobalProcesses() {
delete[] pGlobalProcess;
+ pGlobalProcess = 0;
numGlobalProcess = 0;
}