release managed pointer in outArg()