mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.1.1575: callbacks may be garbage collected
Problem: Callbacks may be garbage collected. Solution: Set reference in callbacks. (Ozaki Kiichi, closes #4564)
This commit is contained in:
@@ -5678,6 +5678,9 @@ garbage_collect(int testing)
|
||||
/* v: vars */
|
||||
abort = abort || set_ref_in_ht(&vimvarht, copyID, NULL);
|
||||
|
||||
// callbacks in buffers
|
||||
abort = abort || set_ref_in_buffers(copyID);
|
||||
|
||||
#ifdef FEAT_LUA
|
||||
abort = abort || set_ref_in_lua(copyID);
|
||||
#endif
|
||||
@@ -5710,6 +5713,10 @@ garbage_collect(int testing)
|
||||
abort = abort || set_ref_in_term(copyID);
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_TEXT_PROP
|
||||
abort = abort || set_ref_in_popups(copyID);
|
||||
#endif
|
||||
|
||||
if (!abort)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user