Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory leak.




On Aug 30, 2005, at 9:59 AM, Brian O'Brien wrote:

As a work around I have suggested that the user iterate through the NSMutableArray
and deallocate the images then deallocate the NSMutableArray...

It also make me worried when I see talk of deallocating.

Are you actually sending dealloc to objects? Or are you trying to imply release / autorelease?

In general you should never need to send dealloc directly yourself but instead depend on reference counting support provided by retain / release / autorelease to do that for you.

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/objc-language/email@hidden

This email sent to email@hidden
References: 
 >Memory leak. (From: "Brian O'Brien" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.