Finally figured out how to use autorelease pools.
authoregottlieb
Thu, 05 Aug 2010 21:27:32 -0400
changeset 4835 40b5293d0598
parent 4834 fd5bb97ec05d
child 4836 7eb8ca721a5b
Finally figured out how to use autorelease pools.
src/video/cocoa/SDL_cocoashape.m
--- 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];