diff options
author | richiesams | 2013-09-03 00:31:44 -0500 |
---|---|---|
committer | richiesams | 2013-09-03 00:31:44 -0500 |
commit | 4d86061b5714ea7e27edffc343572eb85c57a674 (patch) | |
tree | 289698dbb32870ef6ecd66b10080b14403a26379 | |
parent | 34dcea106a2d1d7a7ba3412ef43ca547e67a66dd (diff) | |
download | scummvm-rg350-4d86061b5714ea7e27edffc343572eb85c57a674.tar.gz scummvm-rg350-4d86061b5714ea7e27edffc343572eb85c57a674.tar.bz2 scummvm-rg350-4d86061b5714ea7e27edffc343572eb85c57a674.zip |
ZVISION: Cleanup all used memory in RLF animations
-rw-r--r-- | engines/zvision/rlf_animation.cpp | 3 |
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; } |