aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-09-08 17:49:51 +0200
committerTorbjörn Andersson2016-09-08 17:49:51 +0200
commit01d99a5ddb84e99eea53a2ac67811338b63b24d1 (patch)
tree30e8c32e3fedbdc61c1ebce0480a2b17e369ada7 /engines/fullpipe
parentbffc1f87f97ddceb779c4a55ddb57ae42a99e1e1 (diff)
downloadscummvm-rg350-01d99a5ddb84e99eea53a2ac67811338b63b24d1.tar.gz
scummvm-rg350-01d99a5ddb84e99eea53a2ac67811338b63b24d1.tar.bz2
scummvm-rg350-01d99a5ddb84e99eea53a2ac67811338b63b24d1.zip
FULLPIPE: Free contents of Bitmap surface when deleting bitmap
At the moment, it seems like bitmaps aren't ever deleted though?
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/gfx.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index de0faf071e..1ef5c47cce 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -790,6 +790,7 @@ Bitmap::~Bitmap() {
if (_pixels)
free(_pixels);
+ _surface->free();
delete _surface;
_pixels = 0;