commit | c7269f862748c3b0f56b5a651019e18c7d5190ee | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Dec 05 11:36:23 2021 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Dec 05 11:36:23 2021 +0000 |
tree | 09680ace5adda3503ae6589ebcf1b26947f36194 | |
parent | dea4a616376c6500894c16e26057ce16d7ef9f0e [diff] [blame] |
patch 8.2.3740: memory left allocated on exit when using Tcl Problem: Memory left allocated on exit when using Tcl. Solution: Call Tcl_Finalize().
diff --git a/src/if_tcl.c b/src/if_tcl.c index f3f4b07..4838e31 100644 --- a/src/if_tcl.c +++ b/src/if_tcl.c
@@ -248,6 +248,14 @@ #endif } +#if defined(EXITFREE) || defined(PROTO) + void +vim_tcl_finalize(void) +{ + Tcl_Finalize(); +} +#endif + #if defined(DYNAMIC_TCL) || defined(PROTO) static int stubs_initialized = FALSE;