From 83fef244fb4b9389278f3412d9ba446d6fc967a3 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 22 Mar 2017 04:33:28 +0200 Subject: FULLPIPE: Plug a memory leak in getDibInfo() --- engines/fullpipe/gfx.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') 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)); -- cgit v1.2.3