diff options
author | Filippos Karapetis | 2017-03-24 00:55:47 +0200 |
---|---|---|
committer | Filippos Karapetis | 2017-03-24 00:56:12 +0200 |
commit | b0b0971b3ec3f1771def057c1e7d2560dd2709c4 (patch) | |
tree | b02ab29aa45da53414cd15790aa2f7efbb8406a8 /engines/fullpipe | |
parent | a93c8c5d3ee5345f3a7889d501370f30494e5278 (diff) | |
download | scummvm-rg350-b0b0971b3ec3f1771def057c1e7d2560dd2709c4.tar.gz scummvm-rg350-b0b0971b3ec3f1771def057c1e7d2560dd2709c4.tar.bz2 scummvm-rg350-b0b0971b3ec3f1771def057c1e7d2560dd2709c4.zip |
FULLPIPE: Plug one more memory leak in the Movement class destructor
Diffstat (limited to 'engines/fullpipe')
-rw-r--r-- | engines/fullpipe/statics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 32c019e5af..993e776c77 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -1535,8 +1535,10 @@ Movement::~Movement() { delete _framePosOffsets[i]; if (!_currMovement ) { - if (_updateFlag1) + if (_updateFlag1) { + _dynamicPhases[0]->freePixelData(); _dynamicPhases.remove_at(0); + } // FIXME: At this point, the last entry in _dynamicPhases is invalid for (uint i = 0; i < _dynamicPhases.size() - 1; i++) |