aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2017-03-22 04:33:28 +0200
committerFilippos Karapetis2017-03-22 04:33:28 +0200
commit83fef244fb4b9389278f3412d9ba446d6fc967a3 (patch)
tree5846e56e5ef0ecbdc93c7cc406c87cb306d5045e /engines
parent93982b2ca9b67cd143f603f516570e269f28fa32 (diff)
downloadscummvm-rg350-83fef244fb4b9389278f3412d9ba446d6fc967a3.tar.gz
scummvm-rg350-83fef244fb4b9389278f3412d9ba446d6fc967a3.tar.bz2
scummvm-rg350-83fef244fb4b9389278f3412d9ba446d6fc967a3.zip
FULLPIPE: Plug a memory leak in getDibInfo()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/gfx.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/fullpipe/gfx.cpp b/engines/fullpipe/gfx.cpp
index 5a89f1d419..0dbe693a60 100644
--- a/engines/fullpipe/gfx.cpp
+++ b/engines/fullpipe/gfx.cpp
@@ -591,8 +591,9 @@ void Picture::getDibInfo() {
}
Common::MemoryReadStream *s = new Common::MemoryReadStream(_data + off - 32, 32);
-
_bitmap->load(s);
+ delete s;
+
_bitmap->_pixels = _data;
_bitmap->decode((int32 *)(_paletteData ? _paletteData : g_fp->_globalPalette));