[Scummvm-cvs-logs] SF.net SVN: scummvm:[54726] scummvm/trunk/engines/hugo/hugo.cpp

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Thu Dec 2 00:15:28 CET 2010


Revision: 54726
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54726&view=rev
Author:   tdhs
Date:     2010-12-01 23:15:28 +0000 (Wed, 01 Dec 2010)

Log Message:
-----------
HUGO: Add Missing shutdown() Call - Currently Disabled.

The engine shutdown() function is required to be called to clean up a number of allocated memory blocks. Unfortunately, this currently causes double free issues. This call is added, but commented out with a FIXME explaining this.

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/hugo.cpp

Modified: scummvm/trunk/engines/hugo/hugo.cpp
===================================================================
--- scummvm/trunk/engines/hugo/hugo.cpp	2010-12-01 21:58:26 UTC (rev 54725)
+++ scummvm/trunk/engines/hugo/hugo.cpp	2010-12-01 23:15:28 UTC (rev 54726)
@@ -86,6 +86,10 @@
 }
 
 HugoEngine::~HugoEngine() {
+	// FIXME - Need to call this to remove memory leaks,
+	//         but this currently causes double free issues.
+	//shutdown();
+
 	freeTexts(_textData);
 	freeTexts(_stringtData);
 


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