mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
fix(ios): memory leak in tspan, fixes #1073
This commit is contained in:
@@ -273,6 +273,10 @@ TopAlignedLabel *label;
|
||||
CGRect textBounds = CTLineGetBoundsWithOptions(line, 0);
|
||||
CGFloat textMeasure = CGRectGetWidth(textBounds);
|
||||
cachedAdvance = textMeasure;
|
||||
|
||||
CFRelease(attrString);
|
||||
CFRelease(line);
|
||||
|
||||
return textMeasure;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user