fix(ios): memory leak in tspan, fixes #1073

This commit is contained in:
Mikael Sand
2019-10-05 18:44:26 +03:00
parent 8ce76113e1
commit 974f3a8e8e
+4
View File
@@ -273,6 +273,10 @@ TopAlignedLabel *label;
CGRect textBounds = CTLineGetBoundsWithOptions(line, 0);
CGFloat textMeasure = CGRectGetWidth(textBounds);
cachedAdvance = textMeasure;
CFRelease(attrString);
CFRelease(line);
return textMeasure;
}