From 9fd0bfe53f66314d2457edcb9c53b6155cefd7a5 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 19 Mar 2014 23:19:34 -0400 Subject: [PATCH] Static analysis fix: bad release. (object is already init'd at this point, so -[obj init] destroys existing reference count.) --HG-- extra : rebase_source : 31469af85f9f02d0697fc91d16fbb59834d86849 --- src/video/cocoa/SDL_cocoashape.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoashape.m b/src/video/cocoa/SDL_cocoashape.m index b3843ccb0..0fe7fb659 100644 --- a/src/video/cocoa/SDL_cocoashape.m +++ b/src/video/cocoa/SDL_cocoashape.m @@ -92,7 +92,7 @@ Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShape 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];