summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-03-03 06:04:47 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-03-03 07:25:15 (GMT)
commitf7b64c3f9bb76bc8dbd96852e54e698af68331cb (patch)
tree10ff3f68b8e33b5d491afd1ed62876f375163e52
parent2aa973db1d74044cad42f792ea0b682366391cd5 (diff)
downloadQt-f7b64c3f9bb76bc8dbd96852e54e698af68331cb.zip
Qt-f7b64c3f9bb76bc8dbd96852e54e698af68331cb.tar.gz
Qt-f7b64c3f9bb76bc8dbd96852e54e698af68331cb.tar.bz2
QSound OSX; Fix memory leak.
Reviewed-by:Dmytro Poplavskiy
-rw-r--r--src/gui/kernel/qsound_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qsound_mac.mm b/src/gui/kernel/qsound_mac.mm
index 61e42ba..71fd663 100644
--- a/src/gui/kernel/qsound_mac.mm
+++ b/src/gui/kernel/qsound_mac.mm
@@ -174,6 +174,7 @@ NSSound *QAuServerMac::createNSSound(const QString &fileName, QSound *qSound)
NSSound * const nsSound = [[NSSound alloc] initWithContentsOfFile: nsFileName byReference:YES];
QMacSoundDelegate * const delegate = [[QMacSoundDelegate alloc] initWithQSound:qSound:this];
[nsSound setDelegate:delegate];
+ [nsFileName release];
return nsSound;
}