Hi all,
i am making use of ABAddressBook in my app.
The code is like this...
The Instruments showing LEAK for the ABOVE HIGHLIGHTED LINE..
Similarly the LEAK is shown for where i am fetching the emails (MultiValueRef) from contacts...
Why ???
i am making use of ABAddressBook in my app.
The code is like this...
Code:
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController*)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier
{
if(kABPersonAddressProperty == property)
{
[B][COLOR="Red"]ABMultiValueRef multiValueRef =ABRecordCopyValue(person,kABPersonAddressProperty);[/COLOR][/B]
The Instruments showing LEAK for the ABOVE HIGHLIGHTED LINE..
Similarly the LEAK is shown for where i am fetching the emails (MultiValueRef) from contacts...
Code:
[COLOR="red"][B]ABMultiValueRef multiValueEmail = ABRecordCopyValue(person, kABPersonEmailProperty);
[/B][/COLOR]
Why ???