From 532f2131e7728275554bf393164d9b0eb1e66bb6 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 28 Nov 2009 11:02:30 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@38378 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- plugins/dfinput/cfg-gtk2.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/dfinput') 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 -- cgit v1.2.3