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