[vlc-devel] [PATCH] android thread: fix a semaphore leaking in the case of a detached thread

Adrien Maglo magsoft at gmail.com
Tue Jun 10 16:44:26 CEST 2014


---
 src/android/thread.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/android/thread.c b/src/android/thread.c
index dfbe920..71f80a3 100644
--- a/src/android/thread.c
+++ b/src/android/thread.c
@@ -314,6 +314,7 @@ static void clean_detached_thread(void *data)
 
     /* release thread handle */
     vlc_mutex_destroy(&thread->lock);
+    vlc_sem_destroy(&thread->finished);
     free(thread);
 }
 
-- 
1.9.1




More information about the vlc-devel mailing list