diff src/video/cocoa/SDL_cocoashape.m @ 4835:40b5293d0598

Finally figured out how to use autorelease pools.
author egottlieb
date Thu, 05 Aug 2010 21:27:32 -0400
parents fd5bb97ec05d
children 05d172e92b52
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoashape.m	Thu Aug 05 18:58:45 2010 -0400
+++ b/src/video/cocoa/SDL_cocoashape.m	Thu Aug 05 21:27:32 2010 -0400
@@ -86,13 +86,13 @@
 	
 	data->shape = SDL_CalculateShapeTree(*shapeMode,shape,SDL_FALSE);
 	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-	NSBezierPath* clipPath = [[NSBezierPath bezierPath] autorelease];
+	NSBezierPath* clipPath = [NSBezierPath bezierPath];
 	
 	SDL_PathConglomeration cong = {clipPath,shaper->window};
 	
 	SDL_TraverseShapeTree(data->shape,(SDL_TraversalFunction)&ConglomerateShapeTree,(void*)&cong);
 	
-	SDL_assert([NSGraphicsContext currentContext] != NULL);
+	SDL_assert([NSGraphicsContext currentContext] != Nil);
 	[clipPath addClip];
 	
 	[NSGraphicsContext restoreGraphicsState];