1
mirror of https://github.com/mpv-player/mpv synced 2025-01-05 03:06:28 +01:00

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

View File

@ -251,7 +251,10 @@ static void uninit(void)
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