From 07229315820935df99da2de1aeb6799bf4b0dfe5 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 1 Mar 2012 10:47:21 +0100 Subject: [PATCH] Fix crash on FastAddressBook dealloc --- Classes/LinphoneUI/FastAddressBook.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/FastAddressBook.m b/Classes/LinphoneUI/FastAddressBook.m index 1f88a0077..17ea43cd3 100644 --- a/Classes/LinphoneUI/FastAddressBook.m +++ b/Classes/LinphoneUI/FastAddressBook.m @@ -89,7 +89,7 @@ void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef info, void -(id) initWithRecord:(ABRecordRef) aRecord ofType:(NSString*) type { if ((self = [super init])) { record=CFRetain(aRecord); - numberType= type?[type retain]:@"unkown"; + numberType= [type?type:@"unknown" retain]; } return self; }