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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:53:47+00:00 2026-05-12T16:53:47+00:00

Is the following true? When the app is about to quit, it’s not necessary

  • 0

Is the following true?

When the app is about to quit, it’s
not necessary to clean up the memory
by calling release on all your
retained objects, because the iPhone
OS will reclaim the memory it
allocated for your app when you
launched it. This is faster and safer
than rely on the apps to correctly
clean up after themselves. You can
verify this by putting an NSLog call
(or a debugger breakpoint) in the
dealloc method of your application
delegate and seeing it’s never called.

So, cleaning things up when the app is
about to quit is useless. Moreover,
you have very limited time before the
OS wipes your app out, so don’t waste
it on cleaning things. Focus on saving
your game and any other relevant
stuff.

Source (cocos2d-iphone.org)

  • 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-12T16:53:48+00:00Added an answer on May 12, 2026 at 4:53 pm

    Yes. Quoting the documentation:

    Important: When an application
    terminates, objects may not be sent a
    dealloc message since the process’s
    memory is automatically cleared on
    exit—it is more efficient simply to
    allow the operating system to clean up
    resources than to invoke all the
    memory management methods. This has
    implications for how you implement a
    dealloc method—see “Resource
    Management.”

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

Sidebar

Related Questions

I've got the following in conf.py : def setup(app): app.add_config_value('base_url','http://localhost:2000', True) How do I
This is about a Netbeans 7.1 platform app. Following this tutorial I added the
I have a problem, I'm calling my QDialog like this in the main(): app.setQuitOnLastWindowClosed(true);
I'm following all information about Drive v2 in developers.google.com in order to build a
I am confused about Service lifecycle. I have many questions following: If my app
For the example under Friend Functions How is the following true? Notice that neither
In an assembly I created a class like the following: [DataObject(true)] public class A
In a Windows Service project, with a Project Installer I tried the following: [RunInstaller(true)]
When I NSLog my NSMutableArray, what I get is the following { ABSNFGH True,
Consider the following code: while(true) { someFunction(); Thread.sleep(1000); } What I want is that,

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.