diff options
author | Andre Heider | 2009-10-01 16:52:05 +0000 |
---|---|---|
committer | Andre Heider | 2009-10-01 16:52:05 +0000 |
commit | a6b2e9255fff6bf079115ba8aa7fa6dd9069cfed (patch) | |
tree | 5cf0efb861d5ec6fd3006e996d64df63419c9774 /backends/platform/wii | |
parent | 4a7cea681360d21a9be983bf75942a1c693cdbb9 (diff) | |
download | scummvm-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.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) { |