Skip to content
Permalink
Browse files

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 bcc2ed09b522520d6b99743e268d36f047cc5a7e
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/cocoa/SDL_cocoashape.m
@@ -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];

0 comments on commit bcc2ed0

Please sign in to comment.