Update for memory leak in MTFont.

This commit is contained in:
Michael Griebling
2023-09-10 09:09:06 -04:00
parent 5e908431df
commit cbbce7c6b0

View File

@@ -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
}
}