Skip to content

Commit

Permalink
Update draw_text_cocoa.mm
Browse files Browse the repository at this point in the history
Fix memory leak.
  • Loading branch information
MaddTheSane authored Jan 14, 2025
1 parent eacf2ec commit f32ed3d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Common/Render/Text/draw_text_cocoa.mm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void Create() {
(__bridge id)font, kCTFontAttributeName,
kCFBooleanTrue, kCTForegroundColorFromContextAttributeName, // Lets us specify the color later.
nil];
CFRelease(font);
}
void Destroy() {
//CFRelease(font);
Expand Down

0 comments on commit f32ed3d

Please sign in to comment.