aboutsummaryrefslogtreecommitdiff
path: root/engines/composer
diff options
context:
space:
mode:
authorD G Turner2012-10-20 20:16:36 +0100
committerD G Turner2012-10-20 20:16:36 +0100
commitb32771acafe41ddaa1f05daab90aef84b5dc8c56 (patch)
tree8c0891090284f37477c89659101737f1f3f7a1ad /engines/composer
parent21093175646b8d359e8108b93e28898ed9695457 (diff)
downloadscummvm-rg350-b32771acafe41ddaa1f05daab90aef84b5dc8c56.tar.gz
scummvm-rg350-b32771acafe41ddaa1f05daab90aef84b5dc8c56.tar.bz2
scummvm-rg350-b32771acafe41ddaa1f05daab90aef84b5dc8c56.zip
COMPOSER: Close two memory leaks.
Diffstat (limited to 'engines/composer')
-rw-r--r--engines/composer/composer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/composer/composer.cpp b/engines/composer/composer.cpp
index 555b703da9..f2fef3cd68 100644
--- a/engines/composer/composer.cpp
+++ b/engines/composer/composer.cpp
@@ -109,6 +109,7 @@ Common::Error ComposerEngine::run() {
CursorMan.replaceCursor(cursor->getSurface(), cursor->getWidth(), cursor->getHeight(), cursor->getHotspotX(),
cursor->getHotspotY(), cursor->getKeyColor());
CursorMan.replaceCursorPalette(cursor->getPalette(), cursor->getPaletteStartIndex(), cursor->getPaletteCount());
+ delete cursor;
loadLibrary(0);
@@ -213,6 +214,8 @@ Common::Error ComposerEngine::run() {
_system->delayMillis(20);
}
+ _surface.free();
+
return Common::kNoError;
}