Fix retain cycle for the textRoot property.

This commit is contained in:
Nikolay Demyankov
2018-03-14 15:31:02 +01:00
parent 26964598fc
commit ef8b687ff0
5 changed files with 45 additions and 44 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ static double RNSVGTSpan_radToDeg = 180 / M_PI;
// Create a dictionary for this font
CTFontRef fontRef = [self getFontFromContext];
CGMutablePathRef path = CGPathCreateMutable();
RNSVGGlyphContext* gc = [[self getTextRoot] getGlyphContext];
RNSVGGlyphContext* gc = [self.textRoot getGlyphContext];
RNSVGFontData* font = [gc getFont];
NSUInteger n = str.length;
/*