diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-17 18:34:12 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-01-17 18:34:12 +0000 |
commit | d5820171b790d3bc4a9584e30be6e0f3098f1791 (patch) | |
tree | 96201334ccefbb2e5eb87be46dac067f019a789c /key-bindings.c | |
parent | f3b1a78833b0e1b6016e06c047f2c154d9dbda59 (diff) |
Actually remove the key binding from the tree when freeing it.
Diffstat (limited to 'key-bindings.c')
-rw-r--r-- | key-bindings.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c index eab6b503..89f39dab 100644 --- a/key-bindings.c +++ b/key-bindings.c @@ -1,4 +1,4 @@ -/* $Id: key-bindings.c,v 1.52 2009-01-15 19:27:31 nicm Exp $ */ +/* $Id: key-bindings.c,v 1.53 2009-01-17 18:34:12 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -139,6 +139,7 @@ key_bindings_free(void) while (!SPLAY_EMPTY(&key_bindings)) { bd = SPLAY_ROOT(&key_bindings); + SPLAY_REMOVE(key_bindings, &key_bindings, bd); cmd_free(bd->cmd); xfree(bd); } |