From 01d99a5ddb84e99eea53a2ac67811338b63b24d1 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Thu, 8 Sep 2016 17:49:51 +0200 Subject: FULLPIPE: Free contents of Bitmap surface when deleting bitmap At the moment, it seems like bitmaps aren't ever deleted though? --- engines/fullpipe/gfx.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines/fullpipe') 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; -- cgit v1.2.3