From a3bfbe23ab277f1afbcb09ab9f9c72c977f85ad1 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 30 Jun 2006 10:42:31 +0000 Subject: Documentation updates. 2006-06-30 Matthias Clasen * gtk/gtkprintsettings.c (gtk_print_settings_get_page_ranges): Documentation updates. * gtk/gtkprintunixdialog.c (gtk_print_unix_dialog_set_settings): Don't leak the ranges. (#346237, Carolyn MacLeod) --- gtk/gtkprintunixdialog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/gtkprintunixdialog.c') diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 0a7e03b361..722232eb67 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -2592,7 +2592,10 @@ gtk_print_unix_dialog_set_settings (GtkPrintUnixDialog *dialog, dialog_set_print_pages (dialog, gtk_print_settings_get_print_pages (settings)); ranges = gtk_print_settings_get_page_ranges (settings, &num_ranges); if (ranges) - dialog_set_page_ranges (dialog, ranges, num_ranges); + { + dialog_set_page_ranges (dialog, ranges, num_ranges); + g_free (ranges); + } priv->format_for_printer = g_strdup (gtk_print_settings_get (settings, "format-for-printer")); -- cgit v1.2.1