COMPOSER: Close two memory leaks.
This commit is contained in:
parent
2109317564
commit
b32771acaf
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue