Просмотр исходного кода

VLCEventManager: avoid leaks on continue

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
Gleb Pinigin 12 лет назад
Родитель
Сommit
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;
             }