summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-11-28 11:02:30 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-11-28 11:02:30 +0000
commit532f2131e7728275554bf393164d9b0eb1e66bb6 (patch)
treec5415cb6afa5ca119591ce3ba063cc9164987499
parentf5a6f9ccbf6216bb76569497ea8c7ba17f47ec78 (diff)
downloadpcsxr-532f2131e7728275554bf393164d9b0eb1e66bb6.tar.gz
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@38378 e17a0e51-4ae3-4d35-97c3-1a29b211df97
-rw-r--r--ChangeLog1
-rw-r--r--plugins/dfinput/cfg-gtk2.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 94ab35e4..58ed2729 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ November 28, 2009 Wei Mingzhi <weimingzhi@gmail.com>
* data/pcsx.glade2: Adjusted Memcard dialog.
* po/pt_BR.po, po/zh_CN.po, po/zh_TW.po, po/pcsx.pot: Updated.
* gui/Cheat.c: Fixed memory leaks.
+ * plugins/dfinput/cfg-gtk2.c: Likewise.
* gui/Gtk2Gui.c: Moved memcard dialog stuff into MemcardDlg.c.
* gui/MemcardDlg.c: Added.
* gui/MemcardDlg.h: Likewise.
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