[gtk+] fontchooser: Fix leak



commit 5a5737e3b6bf400811c32bdfc51dbd6581f9e149
Author: Benjamin Otte <otte redhat com>
Date:   Wed Sep 21 00:14:02 2011 +0200

    fontchooser: Fix leak
    
    the path variable is set, not filled in.

 gtk/gtkfontchooserwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooserwidget.c b/gtk/gtkfontchooserwidget.c
index f99ec35..f80c900 100644
--- a/gtk/gtkfontchooserwidget.c
+++ b/gtk/gtkfontchooserwidget.c
@@ -374,7 +374,7 @@ cursor_changed_cb (GtkTreeView *treeview,
   gint  i, n_sizes;
 
   GtkTreeIter  iter;
-  GtkTreePath *path = gtk_tree_path_new ();
+  GtkTreePath *path = NULL;
 
   gtk_tree_view_get_cursor (treeview, &path, NULL);
 



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