diff options
author | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-19 12:01:30 +0000 |
---|---|---|
committer | ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-11-19 12:01:30 +0000 |
commit | d572315b2aef23b6fbfabca8be734e7f7342bd65 (patch) | |
tree | 8991a4eee14ad2dcdfb74fcd5990ade5abd17c6b /libvo | |
parent | c30eaa2029e3a415ecce802fc3b9bd7df97f1b7c (diff) | |
download | mpv-d572315b2aef23b6fbfabca8be734e7f7342bd65.tar.bz2 mpv-d572315b2aef23b6fbfabca8be734e7f7342bd65.tar.xz |
Let NSApp handle events when uninit to fix the delay dealloc bug of mpGLView.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25106 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/vo_macosx.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index a2f335adf0..cb505c25fa 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -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]; } } |