plugging NSString * leaks
plugging NSString * leaks
- Subject: plugging NSString * leaks
- From: Ken Hawkins <email@hidden>
- Date: Wed, 5 May 2004 10:23:31 -0700
is there a way to stop the following code from leaking:
[log toLog:self level:kLOG_OBJECT_DEBUG message:[NSString
stringWithFormat:@"- %s entry -",
__FUNCTION__]];
this appears to be leaking on the stringWithFormat call
i know that i can create an NSAutoReleasePool * and kill that at the
end however i was wondering if there is a more efficient way to do
this? it seems that even if i retain the value within log's toLog: this
of course is a new reference and not the original that was created to
pass in.
thoughts? is an NSAutoReleasePool my only recourse?
ken;
_______________________________________________
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.