소스 검색

VLCEventManager: avoid leaks on continue

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Gleb Pinigin 12 년 전
부모
커밋
93b20621ef
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Sources/VLCEventManager.m

+ 2 - 0
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;
             }