From 1b60e55fe81a390a9810258ccd96a5349a10c9aa Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 10 Sep 2015 22:03:03 +0200 Subject: SHERLOCK: Fix memory leak when playing half-sized 3DO movies --- engines/sherlock/scalpel/scalpel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3