summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXFrameTimeGraphView.m
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/app/MBXFrameTimeGraphView.m')
-rw-r--r--platform/ios/app/MBXFrameTimeGraphView.m7
1 files changed, 6 insertions, 1 deletions
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);
+ }
}
}