mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
FFI: Properly unload loaded DLLs.
This commit is contained in:
parent
ec96d8b494
commit
6dc02450d3
@ -220,7 +220,7 @@ static void clib_unloadlib(CLibrary *cl)
|
|||||||
FreeLibrary((HINSTANCE)h);
|
FreeLibrary((HINSTANCE)h);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (!cl->handle) {
|
} else if (cl->handle) {
|
||||||
FreeLibrary((HINSTANCE)cl->handle);
|
FreeLibrary((HINSTANCE)cl->handle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user