Tk Source Code

Artifact [f6e9dc66]
Login

Artifact f6e9dc666ee3540dadfedc20644a3bc78c50b2e40e741adf82ba722676b17055:

Attachment "e02fc964f3.diff" to ticket [e02fc964] added by chrstphrchvz 2022-02-05 20:22:03.
diff --git macosx/ttkMacOSXTheme.c macosx/ttkMacOSXTheme.c
index 52880ef1c..ddaa2269e 100644
--- macosx/ttkMacOSXTheme.c
+++ macosx/ttkMacOSXTheme.c
@@ -1188,6 +1188,7 @@ static void DrawDarkFocusRing(
     CGPathRef path = CGPathCreateWithRoundedRect(insetBounds, 4, 4, NULL);
     CGContextBeginPath(context);
     CGContextAddPath(context, path);
+    CGPathRelease(path);
     CGContextAddRect(context, bounds);
     CGContextEOFillPath(context);
     CGContextRestoreGState(context);