diff options
author | Matthew Hoops | 2013-04-15 18:19:09 -0400 |
---|---|---|
committer | Matthew Hoops | 2013-04-15 18:19:09 -0400 |
commit | 6a3f735392aa3fdbe37b4e2503e3e8167a247b66 (patch) | |
tree | 9b0fc57641b646590accfa494c40694aa1e50f42 /engines | |
parent | 0250fd8ee16f60b7eebe624956516c51cb26b466 (diff) | |
download | scummvm-rg350-6a3f735392aa3fdbe37b4e2503e3e8167a247b66.tar.gz scummvm-rg350-6a3f735392aa3fdbe37b4e2503e3e8167a247b66.tar.bz2 scummvm-rg350-6a3f735392aa3fdbe37b4e2503e3e8167a247b66.zip |
MOHAWK: Fix cursor group memory leak
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mohawk/cursors.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp index cdb4e1482f..c7bd03678f 100644 --- a/engines/mohawk/cursors.cpp +++ b/engines/mohawk/cursors.cpp @@ -160,6 +160,7 @@ void NECursorManager::setCursor(uint16 id) { Graphics::Cursor *cursor = cursorGroup->cursors[0].cursor; CursorMan.replaceCursor(cursor->getSurface(), cursor->getWidth(), cursor->getHeight(), cursor->getHotspotX(), cursor->getHotspotY(), cursor->getKeyColor()); CursorMan.replaceCursorPalette(cursor->getPalette(), 0, 256); + delete cursorGroup; return; } } |