diff options
author | Aaryaman Vasishta | 2016-12-30 22:50:41 +0900 |
---|---|---|
committer | Aaryaman Vasishta | 2016-12-31 00:55:33 +0900 |
commit | cc917882a69a1d670b5e23d23a496bc2ad9da62b (patch) | |
tree | c4ac0e896d1801391d98ea57ba9071d133702b59 /engines/fullpipe/statics.cpp | |
parent | e78abf4e061ca7c8a144c1123e54381580ae3f41 (diff) | |
download | scummvm-rg350-cc917882a69a1d670b5e23d23a496bc2ad9da62b.tar.gz scummvm-rg350-cc917882a69a1d670b5e23d23a496bc2ad9da62b.tar.bz2 scummvm-rg350-cc917882a69a1d670b5e23d23a496bc2ad9da62b.zip |
FULLPIPE: Fix leaks in surface and bitmap usage.
Fixes part of bug #9654.
Diffstat (limited to 'engines/fullpipe/statics.cpp')
-rw-r--r-- | engines/fullpipe/statics.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index ece4f43e9f..bc66ebf40b 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -552,6 +552,8 @@ void Movement::draw(bool flipFlag, int angle) { } else { bmp->putDib(x, y, (int32 *)_currDynamicPhase->_paletteData, _currDynamicPhase->_alpha); } + //Prevent memory leak after new was used to create bmp in reverseImage() + delete bmp; if (_currDynamicPhase->_rect->top) { if (!_currDynamicPhase->_convertedBitmap) { |