Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Hi all,

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 ???
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.