static HB_GARBAGE_FUNC( _DLLUnload ) { PHB_DLLEXEC xec = ( PHB_DLLEXEC ) Cargo; if( xec->pLibraryHandle && xec->bFreeLibrary ) { hb_gcRefFree( xec->pLibraryHandle ); xec->pLibraryHandle = NULL; } }
static HB_GARBAGE_FUNC( _DLLUnload ) { PHB_DLLEXEC xec = ( PHB_DLLEXEC ) Cargo; if( xec->pLibraryHandle ) { /* by default we do not free library in pLibraryHandle destructor * (look at hb_libRelease() in dynlibhb.c). If you want to free * library call here hb_libFree( xec->pLibraryHandle ). */ hb_gcRefFree( xec->pLibraryHandle ); xec->pLibraryHandle = NULL; } }
void hb_gcGripDrop( PHB_ITEM pItem ) { hb_gcRefFree( pItem ); }