Skip to content
Permalink
Browse files

Fixed double-free of the window shape path

  • Loading branch information
slouken committed Nov 23, 2013
1 parent 4abeed9 commit a3bb007ee559b607c323cc7b1b981722a47a3949
Showing with 1 addition and 1 deletion.
  1. +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];

0 comments on commit a3bb007

Please sign in to comment.