[Scummvm-cvs-logs] SF.net SVN: scummvm:[55186] scummvm/trunk/engines/cine/texte.cpp

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Sun Jan 9 16:53:03 CET 2011


Revision: 55186
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55186&view=rev
Author:   tdhs
Date:     2011-01-09 15:53:03 +0000 (Sun, 09 Jan 2011)

Log Message:
-----------
CINE: Add FIXME about Operation Stealth Memory Leak.

Modified Paths:
--------------
    scummvm/trunk/engines/cine/texte.cpp

Modified: scummvm/trunk/engines/cine/texte.cpp
===================================================================
--- scummvm/trunk/engines/cine/texte.cpp	2011-01-09 15:31:08 UTC (rev 55185)
+++ scummvm/trunk/engines/cine/texte.cpp	2011-01-09 15:53:03 UTC (rev 55186)
@@ -605,6 +605,8 @@
 	in.open(fname);
 
 	if (in.isOpen()) {
+		// FIXME - This can leak in some situations in Operation Stealth
+		//         Engine Restart - multiple allocations with no free?
 		char **ptr = (char **)malloc(sizeof(char *) * 6 * 4 + 60 * 6 * 4);
 
 		for (int i = 0; i < 6 * 4; i++) {


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