in reply to XS DESTROY not invoked
Wow, replying to myself. After reading a doc called "XS Mechanics" I did a last try, and this worked:
###################################################################### +### MODULE = OpenCA::OpenSSL PACKAGE = OpenCA::OpenSSL::CRL void DESTROY(crl) OpenCA_OpenSSL_CRL crl CODE: fprintf(stderr, "DESTROY\n"); X509_CRL_free(crl);
I am not 100% sure why this works, but as I read in the XS Mechanics, it seems that Ptr is only used/converted when a * is in the object, and as this is not the case, we don't need the Ptr at all, so the DESTROY can be in the OpenCA::OpenSSL::CRL package directly
Sigh... I have been all weekend fighting with this, and never tried this :(
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XS DESTROY not invoked
by Anonymous Monk on Sep 25, 2012 at 00:45 UTC |