diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-06-30 10:42:31 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-06-30 10:42:31 +0000 |
commit | a3bfbe23ab277f1afbcb09ab9f9c72c977f85ad1 (patch) | |
tree | 66dbdd2d7a3ca60a4ed404ca1ea5506d2817bd71 /gtk/gtkprintunixdialog.c | |
parent | 866006534ccee4e5114ba61e35f03da49d40bafd (diff) | |
download | gtk+-a3bfbe23ab277f1afbcb09ab9f9c72c977f85ad1.tar.gz |
Documentation updates.
2006-06-30 Matthias Clasen <mclasen@redhat.com>
* 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)
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r-- | gtk/gtkprintunixdialog.c | 5 |
1 files changed, 4 insertions, 1 deletions
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")); |