[Scummvm-cvs-logs] SF.net SVN: scummvm:[44527] scummvm/branches/branch-1-0-0/backends/platform /wii/osystem.cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Thu Oct 1 18:52:39 CEST 2009
Revision: 44527
http://scummvm.svn.sourceforge.net/scummvm/?rev=44527&view=rev
Author: dhewg
Date: 2009-10-01 16:52:39 +0000 (Thu, 01 Oct 2009)
Log Message:
-----------
Backport of r44526: Fixed mismatching malloc/free, and plugged a memleak.
Modified Paths:
--------------
scummvm/branches/branch-1-0-0/backends/platform/wii/osystem.cpp
Modified: scummvm/branches/branch-1-0-0/backends/platform/wii/osystem.cpp
===================================================================
--- scummvm/branches/branch-1-0-0/backends/platform/wii/osystem.cpp 2009-10-01 16:52:05 UTC (rev 44526)
+++ scummvm/branches/branch-1-0-0/backends/platform/wii/osystem.cpp 2009-10-01 16:52:39 UTC (rev 44527)
@@ -159,7 +159,7 @@
if (res) {
printf("ERROR creating mutex\n");
- delete mutex;
+ free(mutex);
return NULL;
}
@@ -185,6 +185,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