aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/fullpipe/statics.cpp4
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++)