aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/wii
diff options
context:
space:
mode:
authorAndre Heider2009-10-01 16:52:05 +0000
committerAndre Heider2009-10-01 16:52:05 +0000
commita6b2e9255fff6bf079115ba8aa7fa6dd9069cfed (patch)
tree5cf0efb861d5ec6fd3006e996d64df63419c9774 /backends/platform/wii
parent4a7cea681360d21a9be983bf75942a1c693cdbb9 (diff)
downloadscummvm-rg350-a6b2e9255fff6bf079115ba8aa7fa6dd9069cfed.tar.gz
scummvm-rg350-a6b2e9255fff6bf079115ba8aa7fa6dd9069cfed.tar.bz2
scummvm-rg350-a6b2e9255fff6bf079115ba8aa7fa6dd9069cfed.zip
Fixed mismatching malloc/free, and plugged a memleak.
svn-id: r44526
Diffstat (limited to 'backends/platform/wii')
-rw-r--r--backends/platform/wii/osystem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/backends/platform/wii/osystem.cpp b/backends/platform/wii/osystem.cpp
index 9a83c9e1c1..00547d55d6 100644
--- a/backends/platform/wii/osystem.cpp
+++ b/backends/platform/wii/osystem.cpp
@@ -211,7 +211,7 @@ OSystem::MutexRef OSystem_Wii::createMutex() {
if (res) {
printf("ERROR creating mutex\n");
- delete mutex;
+ free(mutex);
return NULL;
}
@@ -237,6 +237,8 @@ void OSystem_Wii::deleteMutex(MutexRef mutex) {
if (res)
printf("ERROR destroying mutex %p (%d)\n", mutex, res);
+
+ free(mutex);
}
void OSystem_Wii::setWindowCaption(const char *caption) {