[ios] Fixed crash on first start

This commit is contained in:
Alex Zolotarev 2012-09-06 14:53:54 +03:00 committed by Alex Zolotarev
parent f6bfafd27f
commit bead2c36ea

View file

@ -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