Finally figured out how to use autorelease pools.
--- 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];