clean up array contents within BundleManager.

This commit is contained in:
Peter Tang
2023-09-12 09:38:11 +08:00
parent d1e9a39e11
commit 85d25cf177

View File

@@ -129,6 +129,7 @@ private class BundleManager {
cgFonts.values.forEach { cgFont in
CTFontManagerUnregisterGraphicsFont(cgFont, &errorRef)
}
cgFonts.removeAll()
}
public enum FontError: Error {
case invalidFontFile