Fix crash on FastAddressBook dealloc

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-03-01 10:47:21 +01:00
parent 42a5d4b088
commit 0722931582

View file

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