diff options
author | Filippos Karapetis | 2010-10-07 20:00:32 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-10-07 20:00:32 +0000 |
commit | cacfefa699363153ca27e8f226ca65539cc4cf10 (patch) | |
tree | 3b02ce1c38724ff97dcf070f38d0b43bd936ccfe /engines/sci/graphics | |
parent | cf9c948433e123904cd61f9ae67e09453ea1ab74 (diff) | |
download | scummvm-rg350-cacfefa699363153ca27e8f226ca65539cc4cf10.tar.gz scummvm-rg350-cacfefa699363153ca27e8f226ca65539cc4cf10.tar.bz2 scummvm-rg350-cacfefa699363153ca27e8f226ca65539cc4cf10.zip |
SCI: bugfix for magnifier cursors
When deleting the resources related to magnifier cursors, zero them out
as well. Fixes crash when exiting a game after using a magnifier cursor
svn-id: r53054
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/cursor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp index b7ec23fda9..94d122c432 100644 --- a/engines/sci/graphics/cursor.cpp +++ b/engines/sci/graphics/cursor.cpp @@ -409,8 +409,11 @@ void GfxCursor::kernelClearZoomZone() { _zoomMultiplier = 0; _zoomZoneActive = false; delete _zoomCursorView; + _zoomCursorView = 0; delete _zoomPicView; + _zoomPicView = 0; delete[] _cursorSurface; + _cursorSurface = 0; } void GfxCursor::kernelSetZoomZone(byte multiplier, Common::Rect zone, GuiResourceId viewNum, int loopNum, int celNum, GuiResourceId picNum, byte zoomColor) { |