25 Sep
2002
25 Sep
'02
5:07 p.m.
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.