summaryrefslogtreecommitdiff
path: root/gtk/gtkkeyhash.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2011-04-14 20:22:18 -0400
committerMatthias Clasen <mclasen@redhat.com>2011-04-14 20:22:18 -0400
commitb097729d5a0016254fdbcde4077ba5004b1c6b30 (patch)
tree651c6aa70710949e71a8c0c58113009878b4618c /gtk/gtkkeyhash.c
parent887743728f435a5b4ef20deb79feb26f8e525cae (diff)
downloadgtk+-b097729d5a0016254fdbcde4077ba5004b1c6b30.tar.gz
Don't leak a list when activating keybindings
Patch by Rui Matos, https://bugzilla.gnome.org/show_bug.cgi?id=647790
Diffstat (limited to 'gtk/gtkkeyhash.c')
-rw-r--r--gtk/gtkkeyhash.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkkeyhash.c b/gtk/gtkkeyhash.c
index df67f53af8..f5063f7322 100644
--- a/gtk/gtkkeyhash.c
+++ b/gtk/gtkkeyhash.c
@@ -372,8 +372,9 @@ keyval_in_group (GdkKeymap *keymap,
* This means that fuzzy matches won't be considered if their keyval is
* present in the current group.
*
- * Return value: A #GSList of matching entries.
- **/
+ * Return value: A newly-allocated #GSList of matching entries.
+ * Free with g_slist_free() when no longer needed.
+ */
GSList *
_gtk_key_hash_lookup (GtkKeyHash *key_hash,
guint16 hardware_keycode,