From c15d09e04e35c6ba57acba709e2d17a447e0da06 Mon Sep 17 00:00:00 2001 From: Michael Griebling Date: Mon, 11 Sep 2023 07:30:53 -0400 Subject: [PATCH] Update to fix memory leaking during initialization. --- Sources/SwiftMath/MathRender/MTFontMathTable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SwiftMath/MathRender/MTFontMathTable.swift b/Sources/SwiftMath/MathRender/MTFontMathTable.swift index bc4787a..f56230d 100644 --- a/Sources/SwiftMath/MathRender/MTFontMathTable.swift +++ b/Sources/SwiftMath/MathRender/MTFontMathTable.swift @@ -43,7 +43,7 @@ struct GlyphPart { class MTFontMathTable { // The font for this math table. - var font:MTFont? // @property (nonatomic, readonly, weak) MTFont* font; + public private(set) weak var font:MTFont? // @property (nonatomic, readonly, weak) MTFont* font; var _unitsPerEm: UInt var _fontSize: CGFloat