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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:55:19+00:00 2026-05-22T21:55:19+00:00

My project uses the oauthconsumer code in it. When I am compiling and analising

  • 0

My project uses the oauthconsumer code in it.

When I am compiling and analising my code I get a noticed about an ‘Object sent- autorelease too many times’.

It would be a fair assumption to make the code was written by a lot better engineer than me so I hesitate to ‘fix’ it.

Is the following code wrong?

- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
    OAServiceTicket *ticket = [[OAServiceTicket alloc] initWithRequest:request
                                                              response:response
                                                                  data:responseData
                                                            didSucceed:[(NSHTTPURLResponse *)response statusCode] < 400];
    [ticket autorelease]; // HERE
    [delegate performSelector:didFinishSelector withObject:ticket withObject:responseData];
    [ticket release], ticket = nil; //HERE
}

Is that good code or should the auto release get removed?

  • 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-22T21:55:20+00:00Added an answer on May 22, 2026 at 9:55 pm

    Just remove the autorelease and you’ll be fine. The better engineer clearly made a mistake.

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

Sidebar

Related Questions

My project uses a JSON feed to grab info about earthquakes within a specified
My open source project uses spaces, not tabs, in its code. A contributor to
My MVC project uses the default location (/Content/...) So where this code: <div id=headerstyle=background-image:
Im planning to upgrade a large vb6 application to .net. The project uses many
My project uses several dll files with activex controls. Now I am making a
my project uses 2 different C++ compilers, g++ and nvcc (cuda compiler). I have
My current project uses NUnit for unit tests and to drive UATs written with
The ampoule project uses some tags in docstring, like the javadoc ones. For example
While my ASP.NET project uses version 3.5 of the framework , the event log
Our project currently uses Crystal Reports for Visual Studio 2008. We need to upgrade

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.