summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
diff options
context:
space:
mode:
authorSonicadvance1 <sonicadvance1@gmail.com>2010-02-12 16:40:13 +0000
committerSonicadvance1 <sonicadvance1@gmail.com>2010-02-12 16:40:13 +0000
commit89c276c962b7d6512930abab2d3270e4818d6151 (patch)
tree010eb3b75d06be72644f82942057599dc4c0b854 /Source/Core/AudioCommon
parent060bbcf067ad14dad9a9bb75c27a3521ac97aa04 (diff)
Fix a Memory leak in CoreAudio backend, around 2MB. Stops OpenCL from trying to decode CMPR textures, as it fails horribly. Fixes a memory leak in EXI devices, where the destructor wouldn't be called, causing a 32MB leak with memory cards(if you have two), and maybe a bit more from the other EXI devices
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5042 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon')
-rw-r--r--Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp b/Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp
index d336c833d3..680bc3a4d7 100644
--- a/Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp
+++ b/Source/Core/AudioCommon/Src/CoreAudioSoundStream.cpp
@@ -138,6 +138,7 @@ bool CoreAudioSound::CoreAudioInit()
if(err)
printf("Error while closing component\n");
+ free(soundStruct);
return true;
}