diff --git a/UIBezierPathSerialization/UIBezierPathSerialization.m b/UIBezierPathSerialization/UIBezierPathSerialization.m index 900f8d7..ecf70da 100644 --- a/UIBezierPathSerialization/UIBezierPathSerialization.m +++ b/UIBezierPathSerialization/UIBezierPathSerialization.m @@ -447,6 +447,8 @@ + (UIBezierPath *)bezierPathWithData:(NSData *)data options:(UIBezierPathReading if (!(options & UIBezierPathWritingIgnoreDrawingProperties)) { updateDrawingPropertiesForBezierPathWithProperties(bezierPath, properties); } + CGPathRelease(path); + } @catch (NSException *exception) { if (error) {