summaryrefslogtreecommitdiff
path: root/platform/ios/app/MBXOrnamentsViewController.m
diff options
context:
space:
mode:
authorJulian Rex <julian.rex@mapbox.com>2019-04-30 17:08:37 -0400
committerGitHub <noreply@github.com>2019-04-30 17:08:37 -0400
commit9bd59bf041b0d0ca400f586fdbfed53d06258613 (patch)
tree03306eb75f839c993c4c4c2881f7381e9329c03f /platform/ios/app/MBXOrnamentsViewController.m
parentb15b78346fe44afbdb81934606ab63252df96b66 (diff)
downloadqtlocation-mapboxgl-9bd59bf041b0d0ca400f586fdbfed53d06258613.tar.gz
[ios, macos] Fixes for static analyzer warnings (#14453)
Diffstat (limited to 'platform/ios/app/MBXOrnamentsViewController.m')
-rw-r--r--platform/ios/app/MBXOrnamentsViewController.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/ios/app/MBXOrnamentsViewController.m b/platform/ios/app/MBXOrnamentsViewController.m
index 5c7aac7f88..861d5d7678 100644
--- a/platform/ios/app/MBXOrnamentsViewController.m
+++ b/platform/ios/app/MBXOrnamentsViewController.m
@@ -72,11 +72,13 @@
}
- (void)viewDidDisappear:(BOOL)animated {
+ [super viewDidDisappear:animated];
[self.timer invalidate];
self.timer = nil;
}
- (void)viewDidAppear:(BOOL)animated {
+ [super viewDidAppear:animated];
self.timer = [NSTimer scheduledTimerWithTimeInterval:1
target:self
selector:@selector(onTimerTick)