[empathy/gnome-3-0] PresetDialog: Don't leak path when focusing freshly-created status



commit 98d8ab1991d23766fc965a1f6ab9d97e415cfdb9
Author: Will Thompson <will thompson collabora co uk>
Date:   Fri Jun 10 21:15:35 2011 +0100

    PresetDialog: Don't leak path when focusing freshly-created status

 libempathy-gtk/empathy-status-preset-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libempathy-gtk/empathy-status-preset-dialog.c b/libempathy-gtk/empathy-status-preset-dialog.c
index 2c36cb3..dd83507 100644
--- a/libempathy-gtk/empathy-status-preset-dialog.c
+++ b/libempathy-gtk/empathy-status-preset-dialog.c
@@ -465,6 +465,7 @@ status_preset_dialog_add_preset (GtkWidget *widget,
 					GTK_TREE_VIEW (priv->presets_treeview),
 					path, NULL,
 					FALSE, 0., 0.);
+			gtk_tree_path_free (path);
 			break;
 		}
         }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]