Static analysis fix: bad release.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 19 Mar 2014 23:19:34 -0400
changeset 8647 e2a51b0426a6
parent 8646 0a20fff4de3c
child 8648 2b3eec53c66b
Static analysis fix: bad release. (object is already init'd at this point, so -[obj init] destroys existing reference count.)
src/video/cocoa/SDL_cocoashape.m
--- a/src/video/cocoa/SDL_cocoashape.m	Wed Mar 19 21:48:32 2014 -0700
+++ b/src/video/cocoa/SDL_cocoashape.m	Wed Mar 19 23:19:34 2014 -0400
@@ -92,7 +92,7 @@
 
     pool = [[NSAutoreleasePool alloc] init];
     closure.view = [windata->nswindow contentView];
-    closure.path = [[NSBezierPath bezierPath] init];
+    closure.path = [NSBezierPath bezierPath];
     closure.window = shaper->window;
     SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
     [closure.path addClip];