diff --git a/apple/Elements/RNSVGUse.m b/apple/Elements/RNSVGUse.m index 4f7a0261f..89f1d1546 100644 --- a/apple/Elements/RNSVGUse.m +++ b/apple/Elements/RNSVGUse.m @@ -138,7 +138,7 @@ - (CGPathRef)getPath: (CGContextRef)context return nil; } CGPathRef path = [template getPath:context]; - return CGPathCreateCopyByTransformingPath(path, &transform); + return (CGPathRef) CFAutorelease(CGPathCreateCopyByTransformingPath(path, &transform)); } @end