Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Static analysis fix: bad release.
(object is already init'd at this point, so -[obj init] destroys
 existing reference count.)
  • Loading branch information
icculus committed Mar 20, 2014
1 parent a7b8406 commit bcc2ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoashape.m
Expand Up @@ -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];
Expand Down

0 comments on commit bcc2ed0

Please sign in to comment.