COMPOSER: Close two memory leaks.

This commit is contained in:
D G Turner 2012-10-20 20:16:36 +01:00
parent 2109317564
commit b32771acaf

View File

@ -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;
}