mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
eval: Use proper refcount of msgpack type lists
This commit is contained in:
parent
b732a27c4e
commit
172272ef3f
@ -584,6 +584,7 @@ void eval_init(void)
|
||||
for (size_t i = 0; i < ARRAY_SIZE(msgpack_type_names); i++) {
|
||||
list_T *const type_list = list_alloc();
|
||||
type_list->lv_lock = VAR_FIXED;
|
||||
type_list->lv_refcount = 1;
|
||||
dictitem_T *const di = dictitem_alloc((char_u *) msgpack_type_names[i]);
|
||||
di->di_flags = DI_FLAGS_RO | DI_FLAGS_FIX;
|
||||
di->di_tv = (typval_T) {
|
||||
|
Loading…
Reference in New Issue
Block a user