[Scummvm-cvs-logs] SF.net SVN: scummvm:[50873] scummvm/trunk/graphics/video/codecs/cinepak.cpp
mthreepwood at users.sourceforge.net
mthreepwood at users.sourceforge.net
Wed Jul 14 07:04:57 CEST 2010
Revision: 50873
http://scummvm.svn.sourceforge.net/scummvm/?rev=50873&view=rev
Author: mthreepwood
Date: 2010-07-14 05:04:55 +0000 (Wed, 14 Jul 2010)
Log Message:
-----------
Fix valgrind warning.
Modified Paths:
--------------
scummvm/trunk/graphics/video/codecs/cinepak.cpp
Modified: scummvm/trunk/graphics/video/codecs/cinepak.cpp
===================================================================
--- scummvm/trunk/graphics/video/codecs/cinepak.cpp 2010-07-14 04:42:27 UTC (rev 50872)
+++ scummvm/trunk/graphics/video/codecs/cinepak.cpp 2010-07-14 05:04:55 UTC (rev 50873)
@@ -53,8 +53,11 @@
}
CinepakDecoder::~CinepakDecoder() {
- if (_curFrame.surface)
+ if (_curFrame.surface) {
_curFrame.surface->free();
+ delete _curFrame.surface;
+ }
+
delete[] _curFrame.strips;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list