aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2011-06-16 01:24:58 +0100
committerD G Turner2011-06-16 01:24:58 +0100
commit6bb745c16e902b8f3f396711734f1548566fda22 (patch)
treefc045a8fc3ddf31072fd18b769726d966f3d51aa /engines
parent7be9a575243584ab0732098d57bdf448009f1533 (diff)
downloadscummvm-rg350-6bb745c16e902b8f3f396711734f1548566fda22.tar.gz
scummvm-rg350-6bb745c16e902b8f3f396711734f1548566fda22.tar.bz2
scummvm-rg350-6bb745c16e902b8f3f396711734f1548566fda22.zip
MOHAWK: Fix Memory Leak in PE Cursor Loading.
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/cursors.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp
index f95084de8e..a797e4e127 100644
--- a/engines/mohawk/cursors.cpp
+++ b/engines/mohawk/cursors.cpp
@@ -274,6 +274,7 @@ void PECursorManager::setCursor(uint16 id) {
Graphics::WinCursor *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;
}
}