mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 16:54:52 +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);
|
CGRect textBounds = CTLineGetBoundsWithOptions(line, 0);
|
||||||
CGFloat textMeasure = CGRectGetWidth(textBounds);
|
CGFloat textMeasure = CGRectGetWidth(textBounds);
|
||||||
cachedAdvance = textMeasure;
|
cachedAdvance = textMeasure;
|
||||||
|
|
||||||
|
CFRelease(attrString);
|
||||||
|
CFRelease(line);
|
||||||
|
|
||||||
return textMeasure;
|
return textMeasure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user