diff --git a/Classes/APAddressBook.m b/Classes/APAddressBook.m index 8a4f504..4842186 100644 --- a/Classes/APAddressBook.m +++ b/Classes/APAddressBook.m @@ -88,6 +88,7 @@ - (void)loadContacts:(void (^)(NSArray *contacts, NSError *error))callbackBlock } [contacts sortUsingDescriptors:descriptors]; array = contacts.copy; + CFRelease(peopleArrayRef); } else if (errorRef) { diff --git a/Classes/APContact.m b/Classes/APContact.m index ca72d1a..06ece58 100644 --- a/Classes/APContact.m +++ b/Classes/APContact.m @@ -116,7 +116,6 @@ - (NSString *)localizedLabelFromMultiValue:(ABMultiValueRef)multiValue index:(NS if (localizedLabel) { label = (__bridge_transfer NSString *)localizedLabel; - CFRelease(localizedLabel); } CFRelease(rawLabel); }