Merge pull request #1304 from meros/develop

bugfix: Memory leak in SVG with clip path
This commit is contained in:
Mikael Sand
2020-03-04 15:30:48 +02:00
committed by GitHub
-1
View File
@@ -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);
}