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

  • Home
  • SEARCH
  • 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 3953966
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:02:22+00:00 2026-05-20T02:02:22+00:00

running my app through Instruments Leaks it’s saying I’ve got a leak which seems

  • 0

running my app through Instruments “Leaks” it’s saying I’ve got a leak which seems to happen with this code –

-(void)podAppears {

podCount ++;

NSString *podName = [NSString stringWithFormat:@"Pod%i",podCount];
Pod *thePod = [[Pod alloc] initWithOwner:self withName:podName];

[pods setObject:thePod forKey:podName];
[thePod release];

}

I can’t see anything wrong, but I’m fairly new to Objective-C & memory management in general. Any help much appreciated!

  • 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-20T02:02:23+00:00Added an answer on May 20, 2026 at 2:02 am

    That code looks fine. When Instruments informs you of a leak, it tells you where the leaked object originated. It’s likely that the actual leaking of that object is occurring elsewhere in your app. You should look at other locations where you access your Pod objects.

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

Sidebar

Related Questions

I'm running leaks through Instruments on my iPhone app and I'm seeing a lot
Running Instruments on my iPad app found 2 leaks, except I cannot understand where
I am new to iPhone programming, and am running my app against the Leaks
BACKGROUND: In running my app through a profiler, it looks like the hotspots are
I'm running an android app on the emulator. This app tries to load a
Is an app's executable file byte-for-byte identical when the app is purchased through the
I am writing an internal app for my company, It's a developer tool, which
I'm making an app that updates the UI through the runOnUiThread(Runnable) method. It is
I was getting these errors when running my App on my iphone4 in the
I'm a novice iphone developer, and just completed my first iphone app. After provisioning

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.