Well follow the memory management rules. You retained the objects when you put them in the array so you must release them.


On 03-Oct-2009, at 16:10, Nick Rogers <roger...@mac.com> wrote:

Hi,

I have a class as following:

@interface NodeTypeOrph : NSObject {
   int                count;
   ItemTypeOrph    *key[4];   // Warning: indexing starts at 0, not 1
   NodeTypeOrph    *branch[5];   // Fake pointers to child nodes
}

when I'll send a release to an object of this type, will it automatically release the arrays of ItemTypeOrph and NodeTypeOrph objects.
Or do I have to explicitly traverse and release?

Wishes,
Nick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org

This email sent to r...@rols.org
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to