aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/user_interface.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2015-05-07 23:35:36 +0200
committerWillem Jan Palenstijn2015-05-07 23:35:36 +0200
commit57109ef0a8d30f15aa1fcef7d9d229fc9701f630 (patch)
tree230c0a7822875e9c41a4606fce54166d4dc37db0 /engines/mads/user_interface.cpp
parentd9e93f8e015ce27a95090e854494c4b3f7d1c0d4 (diff)
parent04931d040085d77d031290fda57ca2c5dc486f54 (diff)
downloadscummvm-rg350-57109ef0a8d30f15aa1fcef7d9d229fc9701f630.tar.gz
scummvm-rg350-57109ef0a8d30f15aa1fcef7d9d229fc9701f630.tar.bz2
scummvm-rg350-57109ef0a8d30f15aa1fcef7d9d229fc9701f630.zip
Merge branch 'master' into sherlock
Diffstat (limited to 'engines/mads/user_interface.cpp')
-rw-r--r--engines/mads/user_interface.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/mads/user_interface.cpp b/engines/mads/user_interface.cpp
index 93a555d9c7..1e5a1d80d2 100644
--- a/engines/mads/user_interface.cpp
+++ b/engines/mads/user_interface.cpp
@@ -164,6 +164,7 @@ void UISlots::draw(bool updateFlag, bool delFlag) {
MSurface *spr = sprite->flipHorizontal();
userInterface.mergeFrom(spr, spr->getBounds(), slot._position,
sprite->getTransparencyIndex());
+ spr->free();
delete spr;
} else {
userInterface.mergeFrom(sprite, sprite->getBounds(), slot._position,