comparison src/if_python.c @ 19846:4acb165ed0bc v8.2.0479

patch 8.2.0479: unloading shared libraries on exit has no purpose Commit: https://github.com/vim/vim/commit/2027973b5be693577bea0731b50ea4904d19ea8b Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 29 20:51:07 2020 +0200 patch 8.2.0479: unloading shared libraries on exit has no purpose Problem: Unloading shared libraries on exit has no purpose. Solution: Do not unload shared libraries on exit.
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Mar 2020 21:00:03 +0200
parents f0f9692d4487
children 3ceb24835183
comparison
equal deleted inserted replaced
19845:32787925de3c 19846:4acb165ed0bc
653 # endif 653 # endif
654 {"", NULL}, 654 {"", NULL},
655 }; 655 };
656 656
657 /* 657 /*
658 * Free python.dll
659 */
660 static void
661 end_dynamic_python(void)
662 {
663 if (hinstPython)
664 {
665 close_dll(hinstPython);
666 hinstPython = 0;
667 }
668 }
669
670 /*
671 * Load library and get all pointers. 658 * Load library and get all pointers.
672 * Parameter 'libname' provides name of DLL. 659 * Parameter 'libname' provides name of DLL.
673 * Return OK or FAIL. 660 * Return OK or FAIL.
674 */ 661 */
675 static int 662 static int
887 # else 874 # else
888 Python_RestoreThread(); // enter python 875 Python_RestoreThread(); // enter python
889 # endif 876 # endif
890 Py_Finalize(); 877 Py_Finalize();
891 } 878 }
892 end_dynamic_python();
893 #else 879 #else
894 if (Py_IsInitialized()) 880 if (Py_IsInitialized())
895 { 881 {
896 # ifdef PY_CAN_RECURSE 882 # ifdef PY_CAN_RECURSE
897 PyGILState_Ensure(); 883 PyGILState_Ensure();