mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-12 17:24:09 +00:00
FFI: Fix library unloading on POSIX systems.
This commit is contained in:
parent
d0b1646c80
commit
d72d758a11
@ -114,7 +114,7 @@ static void *clib_loadlib(lua_State *L, const char *name, int global)
|
|||||||
|
|
||||||
static void clib_unloadlib(CLibrary *cl)
|
static void clib_unloadlib(CLibrary *cl)
|
||||||
{
|
{
|
||||||
if (!cl->handle && cl->handle != CLIB_DEFHANDLE)
|
if (cl->handle && cl->handle != CLIB_DEFHANDLE)
|
||||||
dlclose(cl->handle);
|
dlclose(cl->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user