summaryrefslogtreecommitdiff
path: root/gtk/gtkpagesetupunixdialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-12-25 12:03:44 +0000
committerChristian Persch <chpe@src.gnome.org>2006-12-25 12:03:44 +0000
commitfca708fb0efd5856cf5a7b9274dc8ad851cd945f (patch)
tree585a69dc6e1b01acd83cb8cb546ae9f42c7783ba /gtk/gtkpagesetupunixdialog.c
parent8a4e8aa19c933ad2223b9b0e072ce1d77ccda5f9 (diff)
downloadgtk+-fca708fb0efd5856cf5a7b9274dc8ad851cd945f.tar.gz
Fix mem leaks. Bug #389194.
2006-12-25 Christian Persch <chpe@cvs.gnome.org> * gtk/gtkpagesetupunixdialog.c: (printer_status_cb), (add_custom_paper): Fix mem leaks. Bug #389194.
Diffstat (limited to 'gtk/gtkpagesetupunixdialog.c')
-rw-r--r--gtk/gtkpagesetupunixdialog.c2
1 files changed, 2 insertions, 0 deletions
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