aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/prince/animation.cpp')
-rw-r--r--engines/prince/animation.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/prince/animation.cpp b/engines/prince/animation.cpp
index 39040a5181..98d1e33620 100644
--- a/engines/prince/animation.cpp
+++ b/engines/prince/animation.cpp
@@ -42,6 +42,10 @@ void Animation::clear() {
_frameList[i]._surface->free();
delete _frameList[i]._surface;
_frameList[i]._surface = nullptr;
+ if (_frameList[i]._compressedData != nullptr) {
+ free(_frameList[i]._compressedData);
+ _frameList[i]._compressedData = nullptr;
+ }
}
}