diff options
author | D G Turner | 2012-10-20 20:16:36 +0100 |
---|---|---|
committer | D G Turner | 2012-10-20 20:16:36 +0100 |
commit | b32771acafe41ddaa1f05daab90aef84b5dc8c56 (patch) | |
tree | 8c0891090284f37477c89659101737f1f3f7a1ad /engines/composer | |
parent | 21093175646b8d359e8108b93e28898ed9695457 (diff) | |
download | scummvm-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.cpp | 3 |
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; } |