PDA

View Full Version : NSInvocation does not release arguments?




BlackWolf
Apr 23, 2009, 02:28 PM
hi,
is there any way to make an NSInvocation object release all it's arguments? because there is "retainArguments", but there doesn't seem to be a "releaseArguments" method ... this seems kinda strange to me.

The background is that I have a set of NSInvocation objects that I store in an array, but only some of them get called later - the others just get released, but they don't release the arguments attached to them which of course leads to memory leaks.

thanks