mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-28 13:03:12 +00:00
Merge pull request #1304 from meros/develop
bugfix: Memory leak in SVG with clip path
This commit is contained in:
@@ -327,7 +327,6 @@ CGFloat const RNSVG_DEFAULT_FONT_SIZE = 12;
|
||||
}
|
||||
CGAffineTransform transform = CGAffineTransformConcat(_clipNode.matrix, _clipNode.transforms);
|
||||
_cachedClipPath = CGPathCreateCopyByTransformingPath([_clipNode getPath:context], &transform);
|
||||
CGPathRetain(_cachedClipPath);
|
||||
if (_clipMask) {
|
||||
CGImageRelease(_clipMask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user