vo_macosx, fix crash when closing window

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21567 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2006-12-10 01:38:54 +00:00
parent 121bab971c
commit 62ddcb8345
1 changed files with 8 additions and 4 deletions

View File

@ -248,10 +248,13 @@ static void uninit(void)
mp_msg(MSGT_VO, MSGL_FATAL, "uninit: shmctl failed\n");
}
SetSystemUIMode( kUIModeNormal, 0);
CGDisplayShowCursor(kCGDirectMainDisplay);
[autoreleasepool release];
SetSystemUIMode( kUIModeNormal, 0);
CGDisplayShowCursor(kCGDirectMainDisplay);
if(mpGLView)
{
[autoreleasepool release];
}
}
static int preinit(const char *arg)
@ -998,6 +1001,7 @@ static int control(uint32_t request, void *data, ...)
- (void)windowWillClose:(NSNotification *)aNotification
{
mpGLView = NULL;
mplayer_put_key(KEY_ESC);
}
@end