src/gui/kernel/qsound_mac.mm
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
--- a/src/gui/kernel/qsound_mac.mm	Fri Apr 16 15:50:13 2010 +0300
+++ b/src/gui/kernel/qsound_mac.mm	Mon May 03 13:17:34 2010 +0300
@@ -174,6 +174,7 @@
     NSSound * const nsSound = [[NSSound alloc] initWithContentsOfFile: nsFileName byReference:YES];
     QMacSoundDelegate * const delegate = [[QMacSoundDelegate alloc] initWithQSound:qSound:this];
     [nsSound setDelegate:delegate];
+    [nsFileName release];
     return nsSound;
 }