Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed double-free of the window shape path
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/video/cocoa/SDL_cocoashape.m
|
@@ -92,7 +92,7 @@ |
|
|
|
|
|
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]; |
|
|