diff options
author | lukaslw | 2014-07-31 23:42:59 +0200 |
---|---|---|
committer | lukaslw | 2014-07-31 23:42:59 +0200 |
commit | 03b6b61d5175c717c4bbfc3e6c0bdadb931d3158 (patch) | |
tree | 8ec9ec2513761df8bca4086beecced1d0631ea7d | |
parent | d8853725a6c8e4830dbfe813f94ca364794779af (diff) | |
download | scummvm-rg350-03b6b61d5175c717c4bbfc3e6c0bdadb931d3158.tar.gz scummvm-rg350-03b6b61d5175c717c4bbfc3e6c0bdadb931d3158.tar.bz2 scummvm-rg350-03b6b61d5175c717c4bbfc3e6c0bdadb931d3158.zip |
PRINCE: Animation::clear() update
-rw-r--r-- | engines/prince/animation.cpp | 4 |
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; + } } } |