summaryrefslogtreecommitdiffstats
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-03-29 20:51:07 +0200
committerBram Moolenaar <Bram@vim.org>2020-03-29 20:51:07 +0200
commit2027973b5be693577bea0731b50ea4904d19ea8b (patch)
tree9d1be9f140c9ba2e03bac242fb52ee99288a6313 /src/if_lua.c
parent5908fdf72fa1995735e38c46f254ddde81a87c1f (diff)
patch 8.2.0479: unloading shared libraries on exit has no purposev8.2.0479
Problem: Unloading shared libraries on exit has no purpose. Solution: Do not unload shared libraries on exit.
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index 8c1638a3a2..19842912fb 100644
--- a/src/if_lua.c
+++ b/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
}
}