Update for memory leak in MTFont.
This commit is contained in:
@@ -66,4 +66,9 @@ public class MTFont {
|
|||||||
/** The size of this font in points. */
|
/** The size of this font in points. */
|
||||||
public var fontSize:CGFloat { CTFontGetSize(self.ctFont) }
|
public var fontSize:CGFloat { CTFontGetSize(self.ctFont) }
|
||||||
|
|
||||||
|
deinit {
|
||||||
|
self.ctFont = nil
|
||||||
|
self.defaultCGFont = nil
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user