From f32ed3df900e922ca69be82fd62a0e778dc17f69 Mon Sep 17 00:00:00 2001 From: "C.W. Betts" Date: Mon, 13 Jan 2025 19:50:26 -0700 Subject: [PATCH] Update draw_text_cocoa.mm Fix memory leak. --- Common/Render/Text/draw_text_cocoa.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/Common/Render/Text/draw_text_cocoa.mm b/Common/Render/Text/draw_text_cocoa.mm index 42a3660954..4776e03f87 100644 --- a/Common/Render/Text/draw_text_cocoa.mm +++ b/Common/Render/Text/draw_text_cocoa.mm @@ -50,6 +50,7 @@ public: (__bridge id)font, kCTFontAttributeName, kCFBooleanTrue, kCTForegroundColorFromContextAttributeName, // Lets us specify the color later. nil]; + CFRelease(font); } void Destroy() { //CFRelease(font);