Update draw_text_cocoa.mm

Fix memory leak.
This commit is contained in:
C.W. Betts authored and GitHub committed 2025-01-13 19:50:26 -07:00
1 parent eacf2ec42d
commit f32ed3df90
1 file changed
+1
+1
View File
@@ -50,6 +50,7 @@ public:
(__bridge id)font, kCTFontAttributeName,
kCFBooleanTrue, kCTForegroundColorFromContextAttributeName, // Lets us specify the color later.
nil];
CFRelease(font);
}
void Destroy() {
//CFRelease(font);