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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:02:46+00:00 2026-05-25T06:02:46+00:00

I have an object in my app that is declared as an instance var.

  • 0

I have an object in my app that is declared as an instance var.

URLRequest * myRequest

When I go to use this class I:

myRequest = [[URLRequest alloc] init];

Then when I am done with it I:

[myRequest release];//or dealloc does the same

Here is the more of the code: https://gist.github.com/1177739
It’s to much to past here.

However, when I go to use the class again, it goes though the alloc and init, but my app crashes.

pointer being freed was not allocated

I don’t understand this because I alloc and init again. If I don’t release, I get memory leaks in my app. 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-25T06:02:47+00:00Added an answer on May 25, 2026 at 6:02 am

    maybe your method

    - (void)urlComplete:(NSNotification *)notification
    

    is being called twice, set urlRequest to bill and then test that it is not nil at the beginning of you

    - (void)urlComplete:(NSNotification *)notification
    

    method

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

Sidebar

Related Questions

I have a small WinForms app that utilizes a BackgroundWorker object to perform a
We have a Rails app that instantiates a SWF object 16 times (it has
I have a flex 3 app that uses netstream and a video object to
If I have in my php app an object that connects to the database,
In my qt app I have this object, filled before setting up my QTreeWidget's
I have an object declared in my app delegate: @interface MyAppDelegate : NSObject <UIApplicationDelegate>
I have some code in an app that creates a CoreData managed object. In
I have several objects in my app that can become nil at some point
I have an object which contains models for my ASP.NET MVC web app. The
I have been developing an app in VB.NET which requires a control object (for

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.