Mercurial > sdl-ios-xcode
changeset 4835:40b5293d0598
Finally figured out how to use autorelease pools.
author | egottlieb |
---|---|
date | Thu, 05 Aug 2010 21:27:32 -0400 |
parents | fd5bb97ec05d |
children | 7eb8ca721a5b |
files | src/video/cocoa/SDL_cocoashape.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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];