NSInvocation does not release arguments?

Discussion in 'iOS Programming' started by BlackWolf, Apr 23, 2009.

  1. macrumors regular

    Joined:
    Apr 9, 2009
    #1
    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
     

Share This Page