[vlc-commits] qtsound: fix crash when freeing memory

Felix Paul Kühne git at videolan.org
Wed Jul 3 22:54:25 CEST 2013


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jul  3 22:52:03 2013 +0200| [b861acb97193a4a5293a8da4baecbab71d8599ec] | committer: Felix Paul Kühne

qtsound: fix crash when freeing memory
(cherry picked from commit 4e79526324b65db23945d7355e5f323731a73faa)

Conflicts:
	modules/access/qtsound.m

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=b861acb97193a4a5293a8da4baecbab71d8599ec
---

 modules/access/qtsound.m |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/modules/access/qtsound.m b/modules/access/qtsound.m
index 44fb1e0..678e4b8 100644
--- a/modules/access/qtsound.m
+++ b/modules/access/qtsound.m
@@ -196,11 +196,9 @@ vlc_module_end ()
 
 - (void)freeAudioMem
 {
-    @synchronized (self)
-    {
-        if (rawAudioData) {
-            free(rawAudioData);
-        }
+    @synchronized (self) {
+        if (rawAudioData)
+            block_Release(rawAudioData);
     }
 }
 



More information about the vlc-commits mailing list