Re: Memory Question
Re: Memory Question
- Subject: Re: Memory Question
- From: Andreas Mayer <email@hidden>
- Date: Mon, 11 Nov 2002 04:33:25 +0100
Am Montag, 11.11.02 um 04:02 Uhr schrieb Azarhi:
So my question is this, am I going about this the wrong way and
creating a memory leak or is the object that is that slot autoreleased
when I put a new copy in?
If you are replacing a object inside a container like NSMutableArray or
NSMutableDictionary, the old object is released by the container object.
This is nothing special. The container retains the object, so it has to
release it if it's done with it.
Your responsibilty is to release the object after putting it in the
container (if you don't need it any more, of course).
bye. Andreas.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.