mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
COMPOSER: Close two memory leaks.
This commit is contained in:
parent
2109317564
commit
b32771acaf
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user