From a3bb007ee559b607c323cc7b1b981722a47a3949 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 23 Nov 2013 02:02:29 -0800 Subject: [PATCH] Fixed double-free of the window shape path --- src/video/cocoa/SDL_cocoashape.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoashape.m b/src/video/cocoa/SDL_cocoashape.m index ae8df8d19ec49..d8034ec49b654 100644 --- a/src/video/cocoa/SDL_cocoashape.m +++ b/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];