mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-15 22:35:59 +00:00
Fixed double-free of the window shape path
This commit is contained in:
@@ -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] autorelease];
|
closure.path = [[NSBezierPath bezierPath] init];
|
||||||
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];
|
||||||
|
Reference in New Issue
Block a user