I've started using Instruments/Leaks on a project that has been
building and running as expected. It has identified a goodly number of
CFDictionary leaks (a Malloc leak followed by an Autorelease leak)
associated with lines that, in one typical case, reads:
[tmp setObject:[NSDictionary dictionaryWithDictionary:tmp2]
forKey:@"Data"];
The MutableDictionary object "tmp" is instantiated at the beginning of
this particular method by:
NSMutableDictionary *tmp = [[NSMutableDictionary
dictionaryWithCapacity:4] autorelease];
Do I need to autorelease a la:
[tmp setObject:[[NSDictionary dictionaryWithDictionary:tmp2]
autorelease] forKey:@"Data"];
or is this a non-problem given that the reported Malloc leak is
followed by an Autorelease leak?
_______________________________________________
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]