From 8777957cfe1f47317ab4b77f6ffc460e344bed21 Mon Sep 17 00:00:00 2001 From: Ilya Grechuhin Date: Wed, 22 Mar 2017 12:05:37 +0300 Subject: [PATCH] [crash-fix] [ios] Attempt to fix crash. --- iphone/Maps/Core/Location/MWMLocationManager.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/iphone/Maps/Core/Location/MWMLocationManager.mm b/iphone/Maps/Core/Location/MWMLocationManager.mm index 45f1b55080..5a9b2b4409 100644 --- a/iphone/Maps/Core/Location/MWMLocationManager.mm +++ b/iphone/Maps/Core/Location/MWMLocationManager.mm @@ -188,6 +188,7 @@ void setPermissionRequested() - (void)dealloc { + [[NSNotificationCenter defaultCenter] removeObserver:self]; self.locationManager.delegate = nil; } + (void)start { [self manager].started = YES; }