Fix retain cycle for nested views.

This commit is contained in:
Nikolay Demyankov
2018-03-14 11:05:20 +01:00
parent 824a181a3d
commit 26964598fc
9 changed files with 32 additions and 33 deletions
+1 -2
View File
@@ -114,8 +114,7 @@ void RNSVGPerformanceBezier_addLine(CGPoint *last, const CGPoint *next, NSMutabl
- (void)getPathLength:(CGFloat*)lengthP lineCount:(NSUInteger*)lineCountP lengths:(NSArray* __strong *)lengthsP lines:(NSArray* __strong *)linesP isClosed:(BOOL*)isClosedP
{
RNSVGSvgView *svg = [self getSvgView];
RNSVGNode *template = [svg getDefinedTemplate:self.href];
RNSVGNode *template = [self.svgView getDefinedTemplate:self.href];
CGPathRef path = [template getPath:nil];
if (_path != path) {