• R/O
  • SSH

vim: コミット

Mirror of the Vim source from https://github.com/vim/vim


コミットメタ情報

リビジョン005ebb9c8b8f84738b288efb25edac0fa458e7fb (tree)
日時2022-01-18 06:45:04
作者Bram Moolenaar <Bram@vim....>
コミッターBram Moolenaar

ログメッセージ

patch 8.2.4126: crash on exit when built with dynamic Tcl

Commit: https://github.com/vim/vim/commit/afa76e1cf2e7e1f9e1097e345a4272e9ddbf14ad
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 17 21:34:38 2022 +0000

patch 8.2.4126: crash on exit when built with dynamic Tcl
Problem: Crash on exit when built with dynamic Tcl and EXITFREE is defined.
(Dominique Pellé)
Solution: Only call Tcl_Finalize() when initialized. (closes #9546)

変更サマリ

差分

diff -r 421d345d0189 -r 005ebb9c8b8f src/if_tcl.c
--- a/src/if_tcl.c Mon Jan 17 22:15:04 2022 +0100
+++ b/src/if_tcl.c Mon Jan 17 22:45:04 2022 +0100
@@ -248,14 +248,6 @@
248248 #endif
249249 }
250250
251-#if defined(EXITFREE) || defined(PROTO)
252- void
253-vim_tcl_finalize(void)
254-{
255- Tcl_Finalize();
256-}
257-#endif
258-
259251 #if defined(DYNAMIC_TCL) || defined(PROTO)
260252
261253 static int stubs_initialized = FALSE;
@@ -287,6 +279,17 @@
287279 }
288280 #endif
289281
282+#if defined(EXITFREE) || defined(PROTO)
283+ void
284+vim_tcl_finalize(void)
285+{
286+# ifdef DYNAMIC_TCL
287+ if (stubs_initialized)
288+# endif
289+ Tcl_Finalize();
290+}
291+#endif
292+
290293 void
291294 tcl_end(void)
292295 {
diff -r 421d345d0189 -r 005ebb9c8b8f src/version.c
--- a/src/version.c Mon Jan 17 22:15:04 2022 +0100
+++ b/src/version.c Mon Jan 17 22:45:04 2022 +0100
@@ -751,6 +751,8 @@
751751 static int included_patches[] =
752752 { /* Add new patch number below this line */
753753 /**/
754+ 4126,
755+/**/
754756 4125,
755757 /**/
756758 4124,
旧リポジトリブラウザで表示