From fca708fb0efd5856cf5a7b9274dc8ad851cd945f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Mon, 25 Dec 2006 12:03:44 +0000 Subject: [PATCH] Fix mem leaks. Bug #389194. 2006-12-25 Christian Persch * gtk/gtkpagesetupunixdialog.c: (printer_status_cb), (add_custom_paper): Fix mem leaks. Bug #389194. --- ChangeLog | 5 +++++ gtk/gtkpagesetupunixdialog.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3a5e9e1196..d6dc59119b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-12-25 Christian Persch + + * gtk/gtkpagesetupunixdialog.c: (printer_status_cb), + (add_custom_paper): Fix mem leaks. Bug #389194. + 2006-12-24 Matthias Clasen * gtk/gtktextutil.c: Remove debug output. diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c index df1a936e98..e1cc290521 100644 --- a/gtk/gtkpagesetupunixdialog.c +++ b/gtk/gtkpagesetupunixdialog.c @@ -490,6 +490,7 @@ printer_status_cb (GtkPrintBackend *backend, gtk_list_store_set (priv->printer_list, iter, PRINTER_LIST_COL_NAME, str, -1); + g_free (str); } static void @@ -1647,6 +1648,7 @@ add_custom_paper (CustomPaperDialog *data) gtk_tree_view_set_cursor (GTK_TREE_VIEW (data->treeview), path, data->text_column, TRUE); gtk_tree_path_free (path); + g_free (name); } static void