On Nov 28, 2008, at 4:04 PM, dct wrote:
The MutableDictionary object "tmp" is instantiated at the beginning of this particular method by:

NSMutableDictionary *tmp = [[NSMutableDictionary dictionaryWithCapacity:4] autorelease];

You need to review the Cocoa memory management documentation:

http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.html

Specifically, the above is over-releasing the dictionary. If your program isn't crashing, it is only because you are over-retaining it somewhere else.

b.bum
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to