aboutsummaryrefslogtreecommitdiff
path: root/key-bindings.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-10-23 10:25:57 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-10-23 10:25:57 +0000
commit21c17da7e6f4631dc418a7b1768d217ce1ccae2f (patch)
treea3c9af4d1f385ee22c0d2daf8eae0403145660c6 /key-bindings.c
parent64713e0511f8044be088032104a783a77cb44802 (diff)
downloadrtmux-21c17da7e6f4631dc418a7b1768d217ce1ccae2f.tar.gz
rtmux-21c17da7e6f4631dc418a7b1768d217ce1ccae2f.tar.bz2
rtmux-21c17da7e6f4631dc418a7b1768d217ce1ccae2f.zip
Remove freed keys from array.
Diffstat (limited to 'key-bindings.c')
-rw-r--r--key-bindings.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/key-bindings.c b/key-bindings.c
index 913d0f14..ec1014d4 100644
--- a/key-bindings.c
+++ b/key-bindings.c
@@ -1,4 +1,4 @@
-/* $Id: key-bindings.c,v 1.10 2007-10-19 11:10:35 nicm Exp $ */
+/* $Id: key-bindings.c,v 1.11 2007-10-23 10:25:57 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -65,6 +65,8 @@ key_bindings_remove(int key)
if (i == ARRAY_LENGTH(&key_bindings))
return;
+ ARRAY_REMOVE(&key_bindings, i);
+
cmd_free(bd->cmd);
xfree(bd);
}