Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3877358
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T22:29:18+00:00 2026-05-19T22:29:18+00:00

ABRecordRef thecomicstrip = NULL; person = ABPersonCreate(); //LEAKS UIImage *iconImage = [UIImage imageNamed:@my_icon.png]; NSData

  • 0
ABRecordRef thecomicstrip = NULL;
person = ABPersonCreate();

//LEAKS
UIImage *iconImage = [UIImage imageNamed:@"my_icon.png"];
NSData * data = UIImagePNGRepresentation(iconImage);
ABPersonSetImageData(thecomicstrip, (CFDataRef)data, nil);

ABUnknownPersonViewController * unknownPersonViewController = [[ABUnknownPersonViewController alloc] init];
unknownPersonViewController.allowsAddingToAddressBook = NO;
unknownPersonViewController.displayedPerson = person;
[self.navigationController pushViewController:unknownPersonViewController animated:NO];
[unknownPersonViewController release];

CFRelease(person);

I need to set the image without it leaking. Does anyone know how?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T22:29:19+00:00Added an answer on May 19, 2026 at 10:29 pm

    Are you on 4.2? ABPersonSetImageData seems to be leaking on it. Try the code on earlier iOS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person , a view with all of the contact's information
I would like to store a ABRecordRef in a 'Client' entity in core data.
in the method - (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { im trying to simply access
When I use __bridge_transfer or __bridge : - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { NSString* nameFirst
I want to save an ABRecordRef to a SQLite3 DB. Whst type of data
Using ABPersonViewController per Apple's Quick Contacts sample code. ABRecordRef person = (ABRecordRef)[people objectAtIndex:0]; ABPersonViewController
Has anyone had issues with this code... ABRecordRef person = ABAddressBookGetPersonWithRecordID (addressBook,recordID); I have
In an app, I am displaying the details of the contacts using ABRecordRef .
Here is my code to get Notes from AddressBook. +(NSString*)getNote:(ABRecordRef)record { return ABRecordCopyValue(record, kABPersonNoteProperty);
Once I get an ABRecordRef from the ABPeopleNavigationController, how can I get the contact's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.