Original Post
hello again! I've been recently trying to plug all memory leaks releated to AS in our game. Here's the problem I've encountered. Imagine the following object method: which creates a new cVec3 object and returns a handle to it. Now, whenever such object is passed as an argument to a function or method, the reference counter for it is never decremented: Now, if I comment out everything below the getOrigin() call, no memory leaks are detected.
cVec3 @getOrigin();
cVec3 @origin = target.getOrigin();
if ( ( G_PointContents( @origin ) & CONTENTS_NODROP ) == 0 )
...