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.
This commit is contained in:
Christian Persch 2006-12-25 12:03:44 +00:00 committed by Christian Persch
parent 8a4e8aa19c
commit fca708fb0e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-12-25 Christian Persch <chpe@cvs.gnome.org>
* gtk/gtkpagesetupunixdialog.c: (printer_status_cb),
(add_custom_paper): Fix mem leaks. Bug #389194.
2006-12-24 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextutil.c: Remove debug output.

View File

@ -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