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
This commit is contained in:
parent
5c3a763f09
commit
9fd0bfe53f
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ Cocoa_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShape
|
||||||
|
|
||||||
pool = [[NSAutoreleasePool alloc] init];
|
pool = [[NSAutoreleasePool alloc] init];
|
||||||
closure.view = [windata->nswindow contentView];
|
closure.view = [windata->nswindow contentView];
|
||||||
closure.path = [[NSBezierPath bezierPath] init];
|
closure.path = [NSBezierPath bezierPath];
|
||||||
closure.window = shaper->window;
|
closure.window = shaper->window;
|
||||||
SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
|
SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
|
||||||
[closure.path addClip];
|
[closure.path addClip];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue