aboutsummaryrefslogtreecommitdiff
path: root/engines/prince/animation.cpp
diff options
context:
space:
mode:
authorlukaslw2014-07-31 23:42:59 +0200
committerlukaslw2014-07-31 23:42:59 +0200
commit03b6b61d5175c717c4bbfc3e6c0bdadb931d3158 (patch)
tree8ec9ec2513761df8bca4086beecced1d0631ea7d /engines/prince/animation.cpp
parentd8853725a6c8e4830dbfe813f94ca364794779af (diff)
downloadscummvm-rg350-03b6b61d5175c717c4bbfc3e6c0bdadb931d3158.tar.gz
scummvm-rg350-03b6b61d5175c717c4bbfc3e6c0bdadb931d3158.tar.bz2
scummvm-rg350-03b6b61d5175c717c4bbfc3e6c0bdadb931d3158.zip
PRINCE: Animation::clear() update
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;
+ }
}
}