From ea591448aa31c724a3eb9bf4a687d0dc45dd3b84 Mon Sep 17 00:00:00 2001 From: freq Date: Fri, 27 Dec 2013 10:46:26 +0000 Subject: [PATCH] Fix memory leak git-svn-id: trunk@43597 - --- lcl/interfaces/cocoa/cocoawinapi.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lcl/interfaces/cocoa/cocoawinapi.inc b/lcl/interfaces/cocoa/cocoawinapi.inc index 8048cfa6bd..eb6f715da6 100644 --- a/lcl/interfaces/cocoa/cocoawinapi.inc +++ b/lcl/interfaces/cocoa/cocoawinapi.inc @@ -1718,7 +1718,7 @@ begin ctx := CheckDC(DC); if not Assigned(ctx) then Exit; - if (ctx <> DefaultContext) and (ctx.ctx <> DefaultContext.ctx) then + if (ctx <> DefaultContext) and (ctx<>ScreenContext) then ctx.Free; Result := 1; end;