[vlc-devel] [PATCH 3/3] VLCEventManager: avoid leaks on continue

Gleb Pinigin gpinigin at gmail.com
Mon Jun 10 07:12:22 CEST 2013


---
 Sources/VLCEventManager.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Sources/VLCEventManager.m b/Sources/VLCEventManager.m
index 203542e..d312f96 100644
--- a/Sources/VLCEventManager.m
+++ b/Sources/VLCEventManager.m
@@ -112,6 +112,8 @@ static void * EventDispatcherMainLoop(void * user_data)
             if (last_match_msg >= 0) {
                 // newer notification detected, ignore current one
                 [message->u.name release];
+                [dataMessage release];
+                [pool release];
                 pthread_mutex_unlock([self queueLock]);
                 continue;
             }
-- 
1.7.12.4 (Apple Git-37)




More information about the vlc-devel mailing list