Customizable Icons for React Native with support for image source and full styling.
17.31k
stars
2.12k
forks
source link
Memory Leak. iOS. RNVectorIconsManager. Release errorRef object which is not managed by ARC. #1499
Open
kuserhii opened 1 year ago
Environment
Xcode 14.3, iOS 16.4
Description
Into
loadFontWithFileName
func we call CTFontManagerRegisterGraphicsFont whitch have parameter with type CFErrorRef * which is not managed by ARC.Proposed fix
Proposed fix in RNVectorIconsManager.m:
To avoid memory leak we need to release that errorRef varible after usage.
Here we add
Reproducible Demo
Test project with memory leak https://github.com/kuserhii/ReactNativeVectorIconMemoryLeak