diff options
author | Torbjörn Andersson | 2015-09-10 22:03:03 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2015-09-10 22:03:03 +0200 |
commit | 1b60e55fe81a390a9810258ccd96a5349a10c9aa (patch) | |
tree | 8770b53254feb85c81655654f5e3c13775ed908f /engines/sherlock/scalpel | |
parent | 97b2f5890e6485093a75004b1431649eaefdba4c (diff) | |
download | scummvm-rg350-1b60e55fe81a390a9810258ccd96a5349a10c9aa.tar.gz scummvm-rg350-1b60e55fe81a390a9810258ccd96a5349a10c9aa.tar.bz2 scummvm-rg350-1b60e55fe81a390a9810258ccd96a5349a10c9aa.zip |
SHERLOCK: Fix memory leak when playing half-sized 3DO movies
Diffstat (limited to 'engines/sherlock/scalpel')
-rw-r--r-- | engines/sherlock/scalpel/scalpel.cpp | 3 |
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; |