clean up array contents within BundleManager.
This commit is contained in:
@@ -129,6 +129,7 @@ private class BundleManager {
|
|||||||
cgFonts.values.forEach { cgFont in
|
cgFonts.values.forEach { cgFont in
|
||||||
CTFontManagerUnregisterGraphicsFont(cgFont, &errorRef)
|
CTFontManagerUnregisterGraphicsFont(cgFont, &errorRef)
|
||||||
}
|
}
|
||||||
|
cgFonts.removeAll()
|
||||||
}
|
}
|
||||||
public enum FontError: Error {
|
public enum FontError: Error {
|
||||||
case invalidFontFile
|
case invalidFontFile
|
||||||
|
|||||||
Reference in New Issue
Block a user