diff --git a/ChangeLog b/ChangeLog index f47d9946a2..28c5c20d5c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-12-31 Christian Persch + + * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_property): + Plug a mem leak. Bug #506107. + 2007-12-28 Matthias Clasen * gtk/gtkiconfactory.c (render_fallback_image): Adjust to diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c index 8fcf9c4a98..695bfb8be0 100644 --- a/gtk/gtkprintunixdialog.c +++ b/gtk/gtkprintunixdialog.c @@ -1,6 +1,7 @@ /* GtkPrintUnixDialog * Copyright (C) 2006 John (J5) Palmieri * Copyright (C) 2006 Alexander Larsson + * Copyright © 2006, 2007 Christian Persch * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -594,7 +595,7 @@ gtk_print_unix_dialog_get_property (GObject *object, g_value_set_int (value, priv->current_page); break; case PROP_PRINT_SETTINGS: - g_value_set_object (value, gtk_print_unix_dialog_get_settings (dialog)); + g_value_take_object (value, gtk_print_unix_dialog_get_settings (dialog)); break; case PROP_SELECTED_PRINTER: g_value_set_object (value, priv->current_printer); @@ -738,7 +739,7 @@ wrap_in_frame (const gchar *label, GtkWidget *frame, *alignment, *label_widget; gchar *bold_text; - label_widget = gtk_label_new (""); + label_widget = gtk_label_new (NULL); gtk_misc_set_alignment (GTK_MISC (label_widget), 0.0, 0.5); gtk_widget_show (label_widget); @@ -1733,7 +1734,7 @@ dialog_set_page_ranges (GtkPrintUnixDialog *dialog, { GtkPrintUnixDialogPrivate *priv = dialog->priv; gint i; - GString *s = g_string_new (""); + GString *s = g_string_new (NULL); for (i = 0; i < n_ranges; i++) {