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
parent 4c718acc
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> 2007-12-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkiconfactory.c (render_fallback_image): Adjust to * gtk/gtkiconfactory.c (render_fallback_image): Adjust to
......
/* GtkPrintUnixDialog /* GtkPrintUnixDialog
* Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com> * Copyright (C) 2006 John (J5) Palmieri <johnp@redhat.com>
* Copyright (C) 2006 Alexander Larsson <alexl@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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
...@@ -594,7 +595,7 @@ gtk_print_unix_dialog_get_property (GObject *object, ...@@ -594,7 +595,7 @@ gtk_print_unix_dialog_get_property (GObject *object,
g_value_set_int (value, priv->current_page); g_value_set_int (value, priv->current_page);
break; break;
case PROP_PRINT_SETTINGS: 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; break;
case PROP_SELECTED_PRINTER: case PROP_SELECTED_PRINTER:
g_value_set_object (value, priv->current_printer); g_value_set_object (value, priv->current_printer);
...@@ -738,7 +739,7 @@ wrap_in_frame (const gchar *label, ...@@ -738,7 +739,7 @@ wrap_in_frame (const gchar *label,
GtkWidget *frame, *alignment, *label_widget; GtkWidget *frame, *alignment, *label_widget;
gchar *bold_text; 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_misc_set_alignment (GTK_MISC (label_widget), 0.0, 0.5);
gtk_widget_show (label_widget); gtk_widget_show (label_widget);
...@@ -1733,7 +1734,7 @@ dialog_set_page_ranges (GtkPrintUnixDialog *dialog, ...@@ -1733,7 +1734,7 @@ dialog_set_page_ranges (GtkPrintUnixDialog *dialog,
{ {
GtkPrintUnixDialogPrivate *priv = dialog->priv; GtkPrintUnixDialogPrivate *priv = dialog->priv;
gint i; gint i;
GString *s = g_string_new (""); GString *s = g_string_new (NULL);
for (i = 0; i < n_ranges; i++) for (i = 0; i < n_ranges; i++)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment