[Scummvm-cvs-logs] SF.net SVN: scummvm:[44526] scummvm/trunk/backends/platform/wii/osystem.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Thu Oct 1 18:52:05 CEST 2009
Revision: 44526
http://scummvm.svn.sourceforge.net/scummvm/?rev=44526&view=rev
Author: dhewg
Date: 2009-10-01 16:52:05 +0000 (Thu, 01 Oct 2009)
Log Message:
-----------
Fixed mismatching malloc/free, and plugged a memleak.
Modified Paths:
--------------
scummvm/trunk/backends/platform/wii/osystem.cpp
Modified: scummvm/trunk/backends/platform/wii/osystem.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/osystem.cpp 2009-10-01 16:47:34 UTC (rev 44525)
+++ scummvm/trunk/backends/platform/wii/osystem.cpp 2009-10-01 16:52:05 UTC (rev 44526)
@@ -211,7 +211,7 @@
if (res) {
printf("ERROR creating mutex\n");
- delete mutex;
+ free(mutex);
return NULL;
}
@@ -237,6 +237,8 @@
if (res)
printf("ERROR destroying mutex %p (%d)\n", mutex, res);
+
+ free(mutex);
}
void OSystem_Wii::setWindowCaption(const char *caption) {
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