aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMatthew Hoops2013-04-16 11:09:30 -0400
committerMatthew Hoops2013-04-16 11:09:30 -0400
commit6c1b0190563666608aecb56daed4d192d3e31169 (patch)
tree30ce191f70020dbcbc3104316fe322e31eab0dd1 /engines/sci
parenta69b3231a9b916ca451fa58033c4a1e9def51e6b (diff)
downloadscummvm-rg350-6c1b0190563666608aecb56daed4d192d3e31169.tar.gz
scummvm-rg350-6c1b0190563666608aecb56daed4d192d3e31169.tar.bz2
scummvm-rg350-6c1b0190563666608aecb56daed4d192d3e31169.zip
SCI: Fix mac cursor memory leak
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/cursor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index ce77cf6ed3..40d5958588 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -532,6 +532,7 @@ void GfxCursor::kernelSetMacCursor(GuiResourceId viewNum, int loopNum, int celNu
if (!macCursor->readFromStream(resStream)) {
warning("Failed to load Mac cursor %d", viewNum);
+ delete macCursor;
return;
}