Mercurial > mplayer.hg
changeset 21551:c35115c05c64
vo_macosx, fix crash when closing window
author | nplourde |
---|---|
date | Sun, 10 Dec 2006 01:38:54 +0000 |
parents | 9d9e0f1ef0e9 |
children | b71c29179ec2 |
files | libvo/vo_macosx.m |
diffstat | 1 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Sun Dec 10 01:10:53 2006 +0000 +++ b/libvo/vo_macosx.m Sun Dec 10 01:38:54 2006 +0000 @@ -248,10 +248,13 @@ 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 @@ - (void)windowWillClose:(NSNotification *)aNotification { + mpGLView = NULL; mplayer_put_key(KEY_ESC); } @end