diff options
author | Torbjörn Andersson | 2016-09-08 17:49:51 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2016-09-08 17:49:51 +0200 |
commit | 01d99a5ddb84e99eea53a2ac67811338b63b24d1 (patch) | |
tree | 30e8c32e3fedbdc61c1ebce0480a2b17e369ada7 | |
parent | bffc1f87f97ddceb779c4a55ddb57ae42a99e1e1 (diff) | |
download | scummvm-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?
-rw-r--r-- | engines/fullpipe/gfx.cpp | 1 |
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; |