mirror of
https://github.com/tmux/tmux.git
synced 2024-11-17 18:08:51 +00:00
Actually remove the key binding from the tree when freeing it.
This commit is contained in:
parent
f3b1a78833
commit
d5820171b7
@ -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>
|
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||||
@ -139,6 +139,7 @@ key_bindings_free(void)
|
|||||||
|
|
||||||
while (!SPLAY_EMPTY(&key_bindings)) {
|
while (!SPLAY_EMPTY(&key_bindings)) {
|
||||||
bd = SPLAY_ROOT(&key_bindings);
|
bd = SPLAY_ROOT(&key_bindings);
|
||||||
|
SPLAY_REMOVE(key_bindings, &key_bindings, bd);
|
||||||
cmd_free(bd->cmd);
|
cmd_free(bd->cmd);
|
||||||
xfree(bd);
|
xfree(bd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user