From 926997ddb9ad98760713c36d786c3233c48d777e Mon Sep 17 00:00:00 2001 From: Aidan Dysart Date: Thu, 10 Aug 2017 10:22:23 -0700 Subject: [PATCH] fix memory leak --- EasyTips/RCEasyTipView.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/EasyTips/RCEasyTipView.m b/EasyTips/RCEasyTipView.m index 3c75bd9..744b06c 100644 --- a/EasyTips/RCEasyTipView.m +++ b/EasyTips/RCEasyTipView.m @@ -358,6 +358,8 @@ - (void)drawBubbleWithFrame:(CGRect)bubbleFrame arrowPosition:(ArrowPosition)pos if (![_preferences.drawing.borderColor isEqual:[UIColor clearColor]] && _preferences.drawing.borderWidth) { [self drawBorderWithPath:contourPath andContext:context]; } + + CGPathRelease(contourPath); } - (void)drawTopBubbleShapeWithFrame:(CGRect)frame cornerRadius:(CGFloat)radius path:(CGMutablePathRef)path { CGPathAddArcToPoint(path, &CGAffineTransformIdentity, frame.origin.x, frame.origin.y, frame.origin.x, frame.origin.y + frame.size.height, radius);