aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMatthew Hoops2007-09-11 20:17:36 +0000
committerMatthew Hoops2007-09-11 20:17:36 +0000
commitbe013e6c45c7547ac8c57d9061293eb5e82602e2 (patch)
tree816f42ec8c2711314e3823e4eff5c86c0ea7aaa7 /engines/agi
parentc1c7b5f563194822b89656396dd0f3c3b8724b20 (diff)
downloadscummvm-rg350-be013e6c45c7547ac8c57d9061293eb5e82602e2.tar.gz
scummvm-rg350-be013e6c45c7547ac8c57d9061293eb5e82602e2.tar.bz2
scummvm-rg350-be013e6c45c7547ac8c57d9061293eb5e82602e2.zip
fix regression: free the picture data after decoding a PreAGI picture
svn-id: r28894
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/picture.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/agi/picture.cpp b/engines/agi/picture.cpp
index 2fe40181df..32b6099a29 100644
--- a/engines/agi/picture.cpp
+++ b/engines/agi/picture.cpp
@@ -829,6 +829,9 @@ int PictureMgr::decodePicture(byte* data, uint32 length, int clear, int pic_widt
drawPicture(); // Draw 16 color picture.
+ free(_data);
+ _data = 0;
+
return errOK;
}