Skip to content

Commit

Permalink
Fix iOS memory leak in loadFontWithFileName (oblador#1568)
Browse files Browse the repository at this point in the history
Released errorRef object which is not managed by ARC to fix memory leak
  • Loading branch information
kuserhii authored Nov 9, 2023
1 parent 11305bb commit 69841af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RNVectorIconsManager/RNVectorIconsManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ - (NSString *)createGlyphImagePathForFont:(NSString *)fontName
resolve(nil);
}

if (errorRef) {
CFRelease(errorRef);
}
CFRelease(font);
}
if (provider) {
Expand Down

0 comments on commit 69841af

Please sign in to comment.