Prevent carsh if there is no default proxy config

This commit is contained in:
Gautier Pelloux-Prayer 2014-10-10 14:44:02 +02:00
parent f7b2f0f541
commit 80936671c4

View file

@ -164,12 +164,12 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf
CFStringRef lLabel = ABMultiValueCopyLabelAtIndex(lMap, i);
CFStringRef lLocalizedLabel = ABAddressBookCopyLocalizedLabel(lLabel);
NSString* lNormalizedKey = [FastAddressBook normalizePhoneNumber:(NSString*)lValue];
lNormalizedKey = [FastAddressBook normalizeSipURI:lNormalizedKey];
NSString* lNormalizedSipKey = [FastAddressBook normalizeSipURI:lNormalizedKey];
if (lNormalizedSipKey != NULL) lNormalizedKey = lNormalizedSipKey;
[addressBookMap setObject:lPerson forKey:lNormalizedKey];
CFRelease(lValue);
if (lLabel) CFRelease(lLabel);
if (lLocalizedLabel) CFRelease(lLocalizedLabel);
}
if (lLocalizedLabel) CFRelease(lLocalizedLabel); }
CFRelease(lMap);
}
}