aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2015-09-10 22:03:03 +0200
committerTorbjörn Andersson2015-09-10 22:03:03 +0200
commit1b60e55fe81a390a9810258ccd96a5349a10c9aa (patch)
tree8770b53254feb85c81655654f5e3c13775ed908f
parent97b2f5890e6485093a75004b1431649eaefdba4c (diff)
downloadscummvm-rg350-1b60e55fe81a390a9810258ccd96a5349a10c9aa.tar.gz
scummvm-rg350-1b60e55fe81a390a9810258ccd96a5349a10c9aa.tar.bz2
scummvm-rg350-1b60e55fe81a390a9810258ccd96a5349a10c9aa.zip
SHERLOCK: Fix memory leak when playing half-sized 3DO movies
-rw-r--r--engines/sherlock/scalpel/scalpel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index 90a7493b39..2bb90f7af5 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -1298,6 +1298,9 @@ bool ScalpelEngine::play3doMovie(const Common::String &filename, const Common::P
}
}
+ if (halfSize)
+ tempSurface.free();
+
videoDecoder->close();
delete videoDecoder;