diff options
-rw-r--r-- | src/input.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/input.c b/src/input.c index 1f840ac..d57f4e5 100644 --- a/src/input.c +++ b/src/input.c @@ -324,11 +324,7 @@ keysym_to_string (KeySym keysym, unsigned int modifier) sbuf_concat (name, tmp); - /* Eat the nut and throw away the shells. */ - tmp = sbuf_get (name); - free (name); - - return tmp; + return sbuf_free_struct (name); } /* Cooks a keycode + modifier into a keysym + modifier. This should be |