Skip to content

Commit

Permalink
Update for memory leak in MTFont.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriebling committed Sep 10, 2023
1 parent 5e90843 commit cbbce7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/SwiftMath/MathRender/MTFont.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,9 @@ public class MTFont {
/** The size of this font in points. */
public var fontSize:CGFloat { CTFontGetSize(self.ctFont) }

deinit {
self.ctFont = nil
self.defaultCGFont = nil
}

}

0 comments on commit cbbce7c

Please sign in to comment.