diff options
author | Filippos Karapetis | 2017-03-22 04:33:28 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-03-22 04:33:28 +0200 |
commit | 83fef244fb4b9389278f3412d9ba446d6fc967a3 (patch) | |
tree | 5846e56e5ef0ecbdc93c7cc406c87cb306d5045e /engines/fullpipe | |
parent | 93982b2ca9b67cd143f603f516570e269f28fa32 (diff) | |
download | scummvm-rg350-83fef244fb4b9389278f3412d9ba446d6fc967a3.tar.gz scummvm-rg350-83fef244fb4b9389278f3412d9ba446d6fc967a3.tar.bz2 scummvm-rg350-83fef244fb4b9389278f3412d9ba446d6fc967a3.zip |
FULLPIPE: Plug a memory leak in getDibInfo()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/gfx.cpp | 3 |
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)); |