Static analysis fix: bad release.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 19 Mar 2014 23:19:34 -0400
changeset 8647e2a51b0426a6
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
     1.1 --- a/src/video/cocoa/SDL_cocoashape.m	Wed Mar 19 21:48:32 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoashape.m	Wed Mar 19 23:19:34 2014 -0400
     1.3 @@ -92,7 +92,7 @@
     1.4  
     1.5      pool = [[NSAutoreleasePool alloc] init];
     1.6      closure.view = [windata->nswindow contentView];
     1.7 -    closure.path = [[NSBezierPath bezierPath] init];
     1.8 +    closure.path = [NSBezierPath bezierPath];
     1.9      closure.window = shaper->window;
    1.10      SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
    1.11      [closure.path addClip];