mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
Plug a mem leak. Bug #506107.
2007-12-31 Christian Persch <chpe@gnome.org> * gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_property): Plug a mem leak. Bug #506107. svn path=/trunk/; revision=19290
This commit is contained in:
parent
4c718accf8
commit
88e5b9d26e
@ -1,3 +1,8 @@
|
||||
2007-12-31 Christian Persch <chpe@gnome.org>
|
||||
|
||||
* gtk/gtkprintunixdialog.c: (gtk_print_unix_dialog_get_property):
|
||||
Plug a mem leak. Bug #506107.
|
||||
|
||||
2007-12-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkiconfactory.c (render_fallback_image): Adjust to
|
||||
|
@ -1,6 +1,7 @@
|
||||
/* GtkPrintUnixDialog
|
||||
* Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
|
||||
* Copyright (C) 2006 Alexander Larsson <alexl@redhat.com>
|
||||
* 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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user