[Scummvm-cvs-logs] SF.net SVN: scummvm:[33261] scummvm/trunk/engines/parallaction/gui_ns.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Thu Jul 24 11:42:44 CEST 2008


Revision: 33261
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33261&view=rev
Author:   peres001
Date:     2008-07-24 09:42:44 +0000 (Thu, 24 Jul 2008)

Log Message:
-----------
Fixed leak in new gui code.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/gui_ns.cpp

Modified: scummvm/trunk/engines/parallaction/gui_ns.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/gui_ns.cpp	2008-07-24 09:24:32 UTC (rev 33260)
+++ scummvm/trunk/engines/parallaction/gui_ns.cpp	2008-07-24 09:42:44 UTC (rev 33261)
@@ -501,6 +501,11 @@
 		_block.create(BLOCK_WIDTH, BLOCK_HEIGHT, 1);
 	}
 
+	~SelectCharacterInputState() {
+		_block.free();
+		_emptySlots.free();
+	}	
+
 	void cleanup() {
 		_points[0] = _points[1] = _points[2] = 0;
 		_vm->_gfx->hideLabel(_labels[1]);


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