# HG changeset patch # User egottlieb # Date 1281058052 14400 # Node ID 40b5293d059817b66ddd7fc2c60d1dd591081b9b # Parent fd5bb97ec05d9831ac6e4a344bf20812ba5c8ae2 Finally figured out how to use autorelease pools. diff -r fd5bb97ec05d -r 40b5293d0598 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];