in reply to Re: Re: XS routine returns an extra depth of array refs
in thread XS routine returns an extra depth of array refs
It should be newRV_inc. :-)
Only with inline the refcounter of the SV gets auto-incremented. With XS you have to that yourself.
Update: For clarity, only the refcounter of the SV that gets returned! Other SV*'s you have to inc manually!
In Section
Seekers of Perl Wisdom