From b0b0971b3ec3f1771def057c1e7d2560dd2709c4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 24 Mar 2017 00:55:47 +0200 Subject: FULLPIPE: Plug one more memory leak in the Movement class destructor --- engines/fullpipe/statics.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe') 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++) -- cgit v1.2.3