mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-30 13:38:30 +00:00
Fix retain cycle for nested views.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user