Fixed double-free of the window shape path

This commit is contained in:
Sam Lantinga 2013-11-23 02:02:29 -08:00
parent 4abeed93c7
commit a3bb007ee5

View File

@ -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] autorelease];
closure.path = [[NSBezierPath bezierPath] init];
closure.window = shaper->window;
SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
[closure.path addClip];