mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0479: unloading shared libraries on exit has no purpose
Problem: Unloading shared libraries on exit has no purpose. Solution: Do not unload shared libraries on exit.
This commit is contained in:
13
src/if_lua.c
13
src/if_lua.c
@@ -398,16 +398,6 @@ static const luaV_Reg luaV_dll[] = {
|
||||
|
||||
static HANDLE hinstLua = NULL;
|
||||
|
||||
static void
|
||||
end_dynamic_lua(void)
|
||||
{
|
||||
if (hinstLua)
|
||||
{
|
||||
close_dll(hinstLua);
|
||||
hinstLua = 0;
|
||||
}
|
||||
}
|
||||
|
||||
static int
|
||||
lua_link_init(char *libname, int verbose)
|
||||
{
|
||||
@@ -2121,9 +2111,6 @@ lua_end(void)
|
||||
{
|
||||
lua_close(L);
|
||||
L = NULL;
|
||||
#ifdef DYNAMIC_LUA
|
||||
end_dynamic_lua();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user