keyboard: Plug a memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=681787
This commit is contained in:
Rui Matos 2012-08-13 21:53:11 +02:00 committed by Bastien Nocera
parent 3f76a97915
commit 0651abd7fb

View file

@ -769,8 +769,10 @@ section_selection_changed (GtkTreeSelection *selection, gpointer data)
if (keys == NULL) if (keys == NULL)
{ {
g_warning ("Can't find section %s in sections hash table!!!", description); g_warning ("Can't find section %s in sections hash table!!!", description);
g_free (description);
return; return;
} }
g_free (description);
gtk_widget_set_sensitive (WID (builder, "remove-toolbutton"), FALSE); gtk_widget_set_sensitive (WID (builder, "remove-toolbutton"), FALSE);