FFI: Fix library unloading on POSIX systems.

This commit is contained in:
Mike Pall 2012-02-01 18:21:12 +01:00
parent d0b1646c80
commit d72d758a11

View File

@ -114,7 +114,7 @@ static void *clib_loadlib(lua_State *L, const char *name, int global)
static void clib_unloadlib(CLibrary *cl)
{
if (!cl->handle && cl->handle != CLIB_DEFHANDLE)
if (cl->handle && cl->handle != CLIB_DEFHANDLE)
dlclose(cl->handle);
}