Fixed double-free of the window shape path
authorSam Lantinga <slouken@libsdl.org>
Sat, 23 Nov 2013 02:02:29 -0800
changeset 80237e9b97eb8aa3
parent 8022 7396e3cc5337
child 8024 ffbdb99af7bd
Fixed double-free of the window shape path
src/video/cocoa/SDL_cocoashape.m
     1.1 --- a/src/video/cocoa/SDL_cocoashape.m	Fri Nov 22 14:19:52 2013 -0300
     1.2 +++ b/src/video/cocoa/SDL_cocoashape.m	Sat Nov 23 02:02:29 2013 -0800
     1.3 @@ -92,7 +92,7 @@
     1.4  
     1.5      pool = [[NSAutoreleasePool alloc] init];
     1.6      closure.view = [windata->nswindow contentView];
     1.7 -    closure.path = [[NSBezierPath bezierPath] autorelease];
     1.8 +    closure.path = [[NSBezierPath bezierPath] init];
     1.9      closure.window = shaper->window;
    1.10      SDL_TraverseShapeTree(data->shape,&ConvertRects,&closure);
    1.11      [closure.path addClip];