summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfinput/cfg-gtk2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/dfinput/cfg-gtk2.c b/plugins/dfinput/cfg-gtk2.c
index c2013833..d51034df 100644
--- a/plugins/dfinput/cfg-gtk2.c
+++ b/plugins/dfinput/cfg-gtk2.c
@@ -90,6 +90,7 @@ static int GetSelectedKeyIndex(int padnum) {
path = gtk_tree_model_get_path(model, &iter);
i = *gtk_tree_path_get_indices(path);
+ gtk_tree_path_free(path);
return i;
}
@@ -242,6 +243,7 @@ static void TreeSelectionChanged(GtkTreeSelection *selection, gpointer user_data
if (selected) {
path = gtk_tree_model_get_path(model, &iter);
i = *gtk_tree_path_get_indices(path);
+ gtk_tree_path_free(path);
// If a row was selected, and the row is not blank, we can now enable
// some of the disabled widgets