Skip to content

Commit

Permalink
FULLPIPE: Plug one more memory leak in the Movement class destructor
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Mar 23, 2017
1 parent a93c8c5 commit b0b0971
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/fullpipe/statics.cpp
Expand Up @@ -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++)
Expand Down

0 comments on commit b0b0971

Please sign in to comment.