[Scummvm-cvs-logs] SF.net SVN: scummvm:[55673] scummvm/trunk/engines/teenagent
tdhs at users.sourceforge.net
tdhs at users.sourceforge.net
Mon Jan 31 09:51:37 CET 2011
Revision: 55673
http://scummvm.svn.sourceforge.net/scummvm/?rev=55673&view=rev
Author: tdhs
Date: 2011-01-31 08:51:37 +0000 (Mon, 31 Jan 2011)
Log Message:
-----------
TEENAGENT: Further Memory Leak Fixes.
Modified Paths:
--------------
scummvm/trunk/engines/teenagent/surface_list.cpp
scummvm/trunk/engines/teenagent/surface_list.h
Modified: scummvm/trunk/engines/teenagent/surface_list.cpp
===================================================================
--- scummvm/trunk/engines/teenagent/surface_list.cpp 2011-01-31 07:44:40 UTC (rev 55672)
+++ scummvm/trunk/engines/teenagent/surface_list.cpp 2011-01-31 08:51:37 UTC (rev 55673)
@@ -30,6 +30,10 @@
SurfaceList::SurfaceList() : surfaces(NULL), surfaces_n(0) {}
+SurfaceList::~SurfaceList() {
+ free();
+}
+
void SurfaceList::load(Common::SeekableReadStream *stream, Type type, int sub_hack) {
free();
Modified: scummvm/trunk/engines/teenagent/surface_list.h
===================================================================
--- scummvm/trunk/engines/teenagent/surface_list.h 2011-01-31 07:44:40 UTC (rev 55672)
+++ scummvm/trunk/engines/teenagent/surface_list.h 2011-01-31 08:51:37 UTC (rev 55673)
@@ -35,6 +35,7 @@
enum Type { kTypeOn };
SurfaceList();
+ ~SurfaceList();
void load(Common::SeekableReadStream *stream, Type type, int sub_hack = 0);
void free();
void render(Graphics::Surface *surface, const Common::Rect & clip) const;
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