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 6999129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:30:04+00:00 2026-05-27T20:30:04+00:00

In my app, Leaks is reporting that it is leaking in these 3 areas:

  • 0

In my app, Leaks is reporting that it is leaking in these 3 areas:

1

NSData *data = [theDictionary objectForKey:@"Item1"];
[image setImage:[UIImage imageWithData:data] forState:UIControlStateNormal];

2

The third line in this code

CGRect frame = self.view.frame;
frame.origin.x = CGRectGetMaxX(frame);
view3.view.frame = frame;
[self.view.superview addSubview:view3.view];
[UIView animateWithDuration:2
                 animations:^{
                     CGRect frame = self.view.frame;
                     view3.view.frame = frame;
                     frame.origin.x -= frame.size.width;
                     self.view.frame = frame;
                 }
                 completion:^(BOOL finished){
                     [self.view removeFromSuperview]; 
                     [self release];
                 }];

3

The first line in this code:

[self.view.superview addSubview:nlView.view];
    [nlView.view setFrame:CGRectMake(-kWidth, 0, kWidth, kHeight)];
    [UIView animateWithDuration:2.0
                     animations:^{
                         [nlView.view setFrame:CGRectMake(0, 0, kWidth, kHeight)];
                         [self.view setFrame:CGRectMake(kWidth, 0, kWidth, kHeight)];
                     }
                     completion:^(BOOL finished){
                         [self.view removeFromSuperview];
                         [self release];
                     }];

I might have fixed the first one by doing [image release]; afterwards but I do not think that is the right way to do it.

For 2 and 3, I don’t even see any leaks from my perspective even though Leaks says there are.

Can anyone show me where and how to fix these leaks?

Thanks!

  • 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-27T20:30:05+00:00Added an answer on May 27, 2026 at 8:30 pm

    I guess that you did not clean up nlView and view3.

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

Sidebar

Related Questions

I was analyzing my app with leaks, and i observe that some core data
I inherited an Intraweb app that had a 2MB text file of memory leaks
Hi everyone, I'm stuck these days on some memory leaks. The app I'm making
Anybody know how to get all of these in a C# app that leads
I am having trouble removing leaks from an iPhone app that i'm working on.
I am testing my app and I keep getting these leaks but none of
So Apple mentions in their app submission guidelines that if an app leaks memory
After running the Leaks Instruments on an app that I am developing, I see
My android app leaks, what should I check? I gave a look at avoiding
I've cleared my app of leaks using the leaks tool, but I still notice

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.