Skip to content

Commit

Permalink
Fixed double-free of the window shape path
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 23, 2013
1 parent 4abeed9 commit a3bb007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/cocoa/SDL_cocoashape.m
Expand Up @@ -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];
Expand Down

0 comments on commit a3bb007

Please sign in to comment.