0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

updated for version 7.3.005

Problem:    Crash when using undotree(). (Christian Brabandt)
Solution:   Increase the list reference count.  Add a test for undotree()
            (Lech Lorens)
This commit is contained in:
Bram Moolenaar
2010-09-14 12:47:37 +02:00
parent 73a92fe013
commit 217d285fdd
4 changed files with 9 additions and 2 deletions

View File

@@ -7075,7 +7075,7 @@ dict_add_nr_str(d, key, nr, str)
}
/*
* Add a list entry to dictionary "d".
* Add a list entry to dictionary "d".
* Returns FAIL when out of memory and when key already exists.
*/
int
@@ -7097,6 +7097,7 @@ dict_add_list(d, key, list)
dictitem_free(item);
return FAIL;
}
++list->lv_refcount;
return OK;
}