Problem: Memory left allocated on exit when using Tcl.
Solution: Call Tcl_Finalize().
# endif
# ifdef FEAT_GUI_GTK
gui_mch_free_all();
+# endif
+# ifdef FEAT_TCL
+ vim_tcl_finalize();
# endif
clear_hl_tables();
#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;
/* if_tcl.c */
void vim_tcl_init(char *arg);
+void vim_tcl_finalize(void);
int tcl_enabled(int verbose);
void tcl_end(void);
void ex_tcl(exarg_T *eap);
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3740,
/**/
3739,
/**/