[MPlayer-cvslog] CVS: main/libvo vo_macosx.m,1.22,1.23

Nicolas Plourde CVS syncmail at mplayerhq.hu
Wed Jun 29 23:50:01 CEST 2005


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv3216/libvo

Modified Files:
	vo_macosx.m 
Log Message:
crash on autorelease, do not add to pool

Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- vo_macosx.m	17 Jun 2005 16:45:24 -0000	1.22
+++ vo_macosx.m	29 Jun 2005 21:49:58 -0000	1.23
@@ -281,7 +281,6 @@
 								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 @@
 	
 	//create OpenGL Context
 	glContext = [[NSOpenGLContext alloc] initWithFormat:[NSOpenGLView defaultPixelFormat] shareContext:nil];	
-	[glContext autorelease];
 	
 	[self setOpenGLContext:glContext];
 	[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];




More information about the MPlayer-cvslog mailing list