I have a method that accepts three NSMutableArrays, one as Input and two as output using pointer to a pointer.
Now I am creating the two arrays inside the method.
So the memory allocation is done inside the method therefore it should be method’s responsibility to release the memory.
So should I call autorelease on the objects before assigning them to these output references ?
You can
autoreleasethem. But make sure that, after the method call, you callretainon both the output pointers. Release them once you are done with them