Skip to content

Commit

Permalink
fix(ios): memory leak in tspan, fixes #1073
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Oct 5, 2019
1 parent 8ce7611 commit 974f3a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ios/Text/RNSVGTSpan.m
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ - (CGFloat)getSubtreeTextChunksTotalAdvance
CGRect textBounds = CTLineGetBoundsWithOptions(line, 0);
CGFloat textMeasure = CGRectGetWidth(textBounds);
cachedAdvance = textMeasure;

CFRelease(attrString);
CFRelease(line);

return textMeasure;
}

Expand Down

0 comments on commit 974f3a8

Please sign in to comment.