From 9bd59bf041b0d0ca400f586fdbfed53d06258613 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Tue, 30 Apr 2019 17:08:37 -0400 Subject: [ios, macos] Fixes for static analyzer warnings (#14453) --- platform/ios/app/MBXFrameTimeGraphView.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'platform/ios/app/MBXFrameTimeGraphView.m') diff --git a/platform/ios/app/MBXFrameTimeGraphView.m b/platform/ios/app/MBXFrameTimeGraphView.m index f689768818..e881eb9f48 100644 --- a/platform/ios/app/MBXFrameTimeGraphView.m +++ b/platform/ios/app/MBXFrameTimeGraphView.m @@ -59,7 +59,12 @@ const CGFloat MBXFrameTimeBarWidth = 4.f; self.scrollLayer.frame = self.bounds; CGRect thresholdLineRect = CGRectMake(0, self.frame.size.height - [self renderDurationTargetMilliseconds], self.frame.size.width, 1); - self.thresholdLayer.path = CGPathCreateWithRect(thresholdLineRect, nil); + + { + CGPathRef path = CGPathCreateWithRect(thresholdLineRect, nil); + self.thresholdLayer.path = path; + CGPathRelease(path); + } } } -- cgit v1.2.1