mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 08:45:34 +00:00
Static analysis fix: bad release.
(object is already init'd at this point, so -[obj init] destroys existing reference count.)
This commit is contained in:
parent
a7b84069ec
commit
bcc2ed09b5
|
@ -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…
Reference in a new issue