Example #1
0
File: dllx.c Project: rrgaona/core
static HB_GARBAGE_FUNC( _DLLUnload )
{
    PHB_DLLEXEC xec = ( PHB_DLLEXEC ) Cargo;

    if( xec->pLibraryHandle && xec->bFreeLibrary )
    {
        hb_gcRefFree( xec->pLibraryHandle );
        xec->pLibraryHandle = NULL;
    }
}
Example #2
0
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;
   }
}
Example #3
0
void hb_gcGripDrop( PHB_ITEM pItem )
{
   hb_gcRefFree( pItem );
}