From 03b6b61d5175c717c4bbfc3e6c0bdadb931d3158 Mon Sep 17 00:00:00 2001 From: lukaslw Date: Thu, 31 Jul 2014 23:42:59 +0200 Subject: PRINCE: Animation::clear() update --- engines/prince/animation.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/prince/animation.cpp') 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; + } } } -- cgit v1.2.3