I’m using this piece of code in my app:
ABAddressBookRef addressBook = ABAddressBookCreate();
NSArray *contacts = (NSArray*) ABAddressBookCopyArrayOfAllPeople(addressBook);
Am I responsible for releasing both addressBook and contacts? I’ve found nothing on the documentation about that…
Thanks
I think what you need is the Core Foundation Memory Management Guide. According to the linked document, you own both of those objects.
Here’s an example that uses both of your functions. See how the objects are released with
CFRelease()at the end.