[MPlayer-cvslog] r25106 - trunk/libvo/vo_macosx.m
ulion
subversion at mplayerhq.hu
Mon Nov 19 13:01:30 CET 2007
Author: ulion
Date: Mon Nov 19 13:01:30 2007
New Revision: 25106
Log:
Let NSApp handle events when uninit to fix the delay dealloc bug of mpGLView.
Modified:
trunk/libvo/vo_macosx.m
Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m (original)
+++ trunk/libvo/vo_macosx.m Mon Nov 19 13:01:30 2007
@@ -249,6 +249,9 @@ static void uninit(void)
{
mpGLView = nil;
[autoreleasepool release];
+ NSAutoreleasePool *finalPool = [[NSAutoreleasePool alloc] init];
+ [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:nil inMode:NSDefaultRunLoopMode dequeue:YES];
+ [finalPool release];
}
}
More information about the MPlayer-cvslog
mailing list