crash on autorelease, do not add to pool

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15855 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2005-06-29 21:49:58 +00:00
parent 0bbc7905c9
commit 7d73ce2371
1 changed files with 0 additions and 2 deletions

View File

@ -281,7 +281,6 @@ static uint32_t control(uint32_t request, void *data, ...)
styleMask:NSTitledWindowMask|NSTexturedBackgroundWindowMask|NSClosableWindowMask|NSMiniaturizableWindowMask|NSResizableWindowMask
backing:NSBackingStoreBuffered defer:NO];
[window autorelease];
[window setDelegate:mpGLView];
[window setContentView:mpGLView];
[window setInitialFirstResponder:mpGLView];
@ -308,7 +307,6 @@ static uint32_t control(uint32_t request, void *data, ...)
//create OpenGL Context
glContext = [[NSOpenGLContext alloc] initWithFormat:[NSOpenGLView defaultPixelFormat] shareContext:nil];
[glContext autorelease];
[self setOpenGLContext:glContext];
[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];