![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re^4: Perl XS binding to a struct with an array of chars*by syphilis (Archbishop) |
on Nov 21, 2022 at 01:07 UTC ( #11148280=note: print w/replies, xml ) | Need Help?? |
MaxPerl, I haven't managed to get my head around the exact requirements of the XS code, so I can't comment much more.
I noticed in your original post that you had a DESTROY function, and I just wanted to add that I couldn't see any evidence that it will be called automagically. You may find that you have to explicitly call DESTROY (or Safefree) in your code, in order to avoid memory leaks. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|