예제 #1
0
파일: dllx.c 프로젝트: 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;
    }
}
예제 #2
0
파일: dllx.c 프로젝트: JamesLinus/core
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;
   }
}
예제 #3
0
파일: garbage.c 프로젝트: JamesLinus/core
void hb_gcGripDrop( PHB_ITEM pItem )
{
   hb_gcRefFree( pItem );
}