aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/video/codecs/cinepak.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/video/codecs/cinepak.cpp b/graphics/video/codecs/cinepak.cpp
index d3448bb8f7..9892f9d966 100644
--- a/graphics/video/codecs/cinepak.cpp
+++ b/graphics/video/codecs/cinepak.cpp
@@ -53,8 +53,11 @@ CinepakDecoder::CinepakDecoder() : Codec() {
}
CinepakDecoder::~CinepakDecoder() {
- if (_curFrame.surface)
+ if (_curFrame.surface) {
_curFrame.surface->free();
+ delete _curFrame.surface;
+ }
+
delete[] _curFrame.strips;
}