diff options
author | Fabio Battaglia | 2011-02-28 19:16:18 +0100 |
---|---|---|
committer | Fabio Battaglia | 2011-02-28 19:16:18 +0100 |
commit | 33d90412c19002b4c892d5ac693c051cbe81905d (patch) | |
tree | 244002995cf7d024765be15f97674c31bdedf852 /engines/sword2 | |
parent | 0d555c497d7208d0fa686f1b2369a52841873990 (diff) | |
download | scummvm-rg350-33d90412c19002b4c892d5ac693c051cbe81905d.tar.gz scummvm-rg350-33d90412c19002b4c892d5ac693c051cbe81905d.tar.bz2 scummvm-rg350-33d90412c19002b4c892d5ac693c051cbe81905d.zip |
SWORD2: Plug a memory leak in psx version
Free buffer used to resize psx sprite in drawTextObject
Diffstat (limited to 'engines/sword2')
-rw-r--r-- | engines/sword2/animation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sword2/animation.cpp b/engines/sword2/animation.cpp index 2fafb70fea..e75e38ad81 100644 --- a/engines/sword2/animation.cpp +++ b/engines/sword2/animation.cpp @@ -237,6 +237,10 @@ void MoviePlayer::drawTextObject(uint32 index, byte *screen, uint16 pitch) { src += width; dst += pitch; } + + // Free buffer used to resize psx sprite + if (Sword2Engine::isPsx()) + free(src); } } |