diff options
author | Matthew Hoops | 2010-07-14 05:04:55 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-07-14 05:04:55 +0000 |
commit | d5ff65bc023c5e68db8a3fed4dc4cf6decc6356e (patch) | |
tree | 70a1b01b9127addae178d5d9ec731bc99a217378 /graphics/video | |
parent | 67601273002a43134d23202eed759c1691ea16dc (diff) | |
download | scummvm-rg350-d5ff65bc023c5e68db8a3fed4dc4cf6decc6356e.tar.gz scummvm-rg350-d5ff65bc023c5e68db8a3fed4dc4cf6decc6356e.tar.bz2 scummvm-rg350-d5ff65bc023c5e68db8a3fed4dc4cf6decc6356e.zip |
Fix valgrind warning.
svn-id: r50873
Diffstat (limited to 'graphics/video')
-rw-r--r-- | graphics/video/codecs/cinepak.cpp | 5 |
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; } |