]> git.sesse.net Git - vlc/blobdiff - projects/macosx/framework/Sources/VLCEventManager.m
use NSAutoreleasePool::drain instead of NSAutoreleasePool::release since VLCKit ist...
[vlc] / projects / macosx / framework / Sources / VLCEventManager.m
index 81013ca8eb39f6fee5476709f9fe82344323393d..b810b24686d9c6b00060094f4c52efb38ae7a18e 100644 (file)
@@ -155,7 +155,7 @@ static void * EventDispatcherMainLoop(void * user_data)
                                    withObject:dataMessage
                                 waitUntilDone: YES];
 
-        [pool release];
+        [pool drain];
     }
     return nil;
 }
@@ -231,7 +231,7 @@ static void * EventDispatcherMainLoop(void * user_data)
         pthread_mutex_unlock( [self queueLock] );
     }
     
-    [pool release];
+    [pool drain];
 }
 
 - (void)callOnMainThreadObject:(id)aTarget withMethod:(SEL)aSelector withArgumentAsObject: (id)arg
@@ -250,7 +250,7 @@ static void * EventDispatcherMainLoop(void * user_data)
     pthread_cond_signal( [self signalData] );
     pthread_mutex_unlock( [self queueLock] );
     
-    [pool release];
+    [pool drain];
 }
 @end