Problem: Crash on exit when built with dynamic Tcl and EXITFREE is defined.
(Dominique Pellé)
Solution: Only call Tcl_Finalize() when initialized. (closes #9546)
#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;
}
return stubs_initialized;
}
+#endif
+
+#if defined(EXITFREE) || defined(PROTO)
+ void
+vim_tcl_finalize(void)
+{
+# ifdef DYNAMIC_TCL
+ if (stubs_initialized)
+# endif
+ Tcl_Finalize();
+}
#endif
void
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4126,
/**/
4125,
/**/