aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/zvision/rlf_animation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/rlf_animation.cpp b/engines/zvision/rlf_animation.cpp
index df1fe118da..73fbe05bfc 100644
--- a/engines/zvision/rlf_animation.cpp
+++ b/engines/zvision/rlf_animation.cpp
@@ -72,6 +72,9 @@ RlfAnimation::RlfAnimation(const Common::String &fileName, bool stream)
RlfAnimation::~RlfAnimation() {
delete[] _currentFrameBuffer;
+ for (int i = 0; i < _frameCount; i++) {
+ delete[] _frames[i].encodedData;
+ }
delete[] _frames;
}