comparison src/eval.c @ 17151:ebe9aab81898 v8.1.1575

patch 8.1.1575: callbacks may be garbage collected commit https://github.com/vim/vim/commit/75a1a9415b9c207de5a29b25c0d1949c6c9c5c61 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 20 03:45:36 2019 +0200 patch 8.1.1575: callbacks may be garbage collected Problem: Callbacks may be garbage collected. Solution: Set reference in callbacks. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/4564)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jun 2019 04:00:07 +0200
parents 620e9011b685
children 1d30eb64a7a2
comparison
equal deleted inserted replaced
17150:96373bb9c0eb 17151:ebe9aab81898
5676 abort = abort || set_ref_in_func_args(copyID); 5676 abort = abort || set_ref_in_func_args(copyID);
5677 5677
5678 /* v: vars */ 5678 /* v: vars */
5679 abort = abort || set_ref_in_ht(&vimvarht, copyID, NULL); 5679 abort = abort || set_ref_in_ht(&vimvarht, copyID, NULL);
5680 5680
5681 // callbacks in buffers
5682 abort = abort || set_ref_in_buffers(copyID);
5683
5681 #ifdef FEAT_LUA 5684 #ifdef FEAT_LUA
5682 abort = abort || set_ref_in_lua(copyID); 5685 abort = abort || set_ref_in_lua(copyID);
5683 #endif 5686 #endif
5684 5687
5685 #ifdef FEAT_PYTHON 5688 #ifdef FEAT_PYTHON
5706 abort = abort || set_ref_in_quickfix(copyID); 5709 abort = abort || set_ref_in_quickfix(copyID);
5707 #endif 5710 #endif
5708 5711
5709 #ifdef FEAT_TERMINAL 5712 #ifdef FEAT_TERMINAL
5710 abort = abort || set_ref_in_term(copyID); 5713 abort = abort || set_ref_in_term(copyID);
5714 #endif
5715
5716 #ifdef FEAT_TEXT_PROP
5717 abort = abort || set_ref_in_popups(copyID);
5711 #endif 5718 #endif
5712 5719
5713 if (!abort) 5720 if (!abort)
5714 { 5721 {
5715 /* 5722 /*