ross at soi.city.ac.uk
Wed Sep 25 05:07:19 EDT 2002
On Wed, Sep 25, 2002 at 09:33:04AM +0100, Ross Paterson wrote:
> If the struct were allocated with mallocForeignPtr, you need another
> C call to use as the finalizer for that, say hs_f_free().
Sorry, that's wrong: If the struct were allocated with mallocForeignPtr,
you're stuck. You've no choice but to use addForeignPtrFinalizer,
except that you can't because the order of finalizers is unspecified.
More information about the FFI