diff options
-rw-r--r-- | backends/platform/wii/osystem.cpp | 4 |
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) { |