mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-06 21:13:17 +00:00
Fix memory leaks
This commit is contained in:
@@ -113,8 +113,10 @@
|
||||
if (_bezierTransformer) {
|
||||
textPathTransform = [_bezierTransformer getTransformAtDistance:glyphPoint.x];
|
||||
if ([self textPathHasReachedEnd]) {
|
||||
CGPathRelease(letter);
|
||||
break;
|
||||
} else if (![self textPathHasReachedStart]) {
|
||||
CGPathRelease(letter);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -127,7 +129,6 @@
|
||||
CGPathAddPath(path, &transform, letter);
|
||||
CGPathRelease(letter);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user