Test and initial fix for crash with dictwatcherdel

Fixes https://github.com/neovim/neovim/issues/11188.
This commit is contained in:
Daniel Hahler
2019-10-09 19:40:50 +02:00
committed by Jan Edmund Lazo
parent c20ae3aadb
commit 4c76b1e981
3 changed files with 30 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ typedef struct dict_watcher {
size_t key_pattern_len;
QUEUE node;
bool busy; // prevent recursion if the dict is changed in the callback
bool needs_free;
} DictWatcher;
/// Bool variable values