diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-09-14 12:47:37 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-09-14 12:47:37 +0200 |
commit | 217d285fddd80fb04b779b6e2888d57edb595f48 (patch) | |
tree | 7a03ce734543c38e43093f08c8d9891750ac92a4 /src/eval.c | |
parent | 73a92fe01332d83832f22e18c83e7da70f62de25 (diff) | |
download | vim-git-217d285fddd80fb04b779b6e2888d57edb595f48.tar.gz |
updated for version 7.3.005v7.3.005
Problem: Crash when using undotree(). (Christian Brabandt)
Solution: Increase the list reference count. Add a test for undotree()
(Lech Lorens)
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index fc01006f2..0f306d46f 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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; } |