summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-02-20 02:13:54 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2014-02-20 02:13:54 +0100
commit387a4b85b1414336e69d3dda35b18e652e3990a2 (patch)
treee4d26572067804b1bfb2d15f40866796448a5db1
parent7e51d7eb7799cb3d5c4c2458725d84a7318ba293 (diff)
downloadratpoison-387a4b85b1414336e69d3dda35b18e652e3990a2.zip
Simplify using sbuf_free_struct.
-rw-r--r--src/input.c6
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