diff options
author | Julian Rex <julian.rex@mapbox.com> | 2019-04-30 17:08:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 17:08:37 -0400 |
commit | 9bd59bf041b0d0ca400f586fdbfed53d06258613 (patch) | |
tree | 03306eb75f839c993c4c4c2881f7381e9329c03f /platform/ios/app/MBXFrameTimeGraphView.m | |
parent | b15b78346fe44afbdb81934606ab63252df96b66 (diff) | |
download | qtlocation-mapboxgl-9bd59bf041b0d0ca400f586fdbfed53d06258613.tar.gz |
[ios, macos] Fixes for static analyzer warnings (#14453)
Diffstat (limited to 'platform/ios/app/MBXFrameTimeGraphView.m')
-rw-r--r-- | platform/ios/app/MBXFrameTimeGraphView.m | 7 |
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); + } } } |