forked from organicmaps/organicmaps
[ios] Fixed crash on first start
This commit is contained in:
parent
f6bfafd27f
commit
bead2c36ea
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@
|
|||
else
|
||||
{
|
||||
u = Settings::Foot;
|
||||
PrefDelegate * d = [[[PrefDelegate alloc] init] autorelease];
|
||||
// Will be released in delegate's callback itself
|
||||
PrefDelegate * d = [[PrefDelegate alloc] init];
|
||||
d.m_controller = controller;
|
||||
UIAlertView * alert = [[UIAlertView alloc] initWithTitle:NSLocalizedString(@"which_measurement_system", @"Choose measurement on first launch alert - title")
|
||||
message:nil
|
||||
|
|
Loading…
Add table
Reference in a new issue