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

strangerke at users.sourceforge.net strangerke at users.sourceforge.net
Wed Nov 10 00:31:08 CET 2010


Revision: 54175
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54175&view=rev
Author:   strangerke
Date:     2010-11-09 23:31:08 +0000 (Tue, 09 Nov 2010)

Log Message:
-----------
HUGO: Fix the last leaks in H1 Dos

Thanks Hkz for the help!

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

Modified: scummvm/trunk/engines/hugo/hugo.cpp
===================================================================
--- scummvm/trunk/engines/hugo/hugo.cpp	2010-11-09 22:20:36 UTC (rev 54174)
+++ scummvm/trunk/engines/hugo/hugo.cpp	2010-11-09 23:31:08 UTC (rev 54175)
@@ -88,13 +88,13 @@
 
 	if (_arrayNouns) {
 		for (int i = 0; _arrayNouns[i]; i++)
-			free(_arrayNouns[i]);
+			freeTexts(_arrayNouns[i]);
 		free(_arrayNouns);
 	}
 
 	if (_arrayVerbs) {
 		for (int i = 0; _arrayVerbs[i]; i++)
-			free(_arrayVerbs[i]);
+			freeTexts(_arrayVerbs[i]);
 		free(_arrayVerbs);
 	}
 


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