Commit 87caf0d3 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Fix life cycle to avoid crash. [#536966]

2008-06-20  Jody Goldberg <jody@gnome.org>

	* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog) : 
	  Fix life cycle to avoid crash. [#536966]

svn path=/trunk/; revision=20660
parent b4b24c64
2008-06-20 Jody Goldberg <jody@gnome.org>
* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog) :
Fix life cycle to avoid crash. [#536966]
2008-06-20 Hans Breuer <hans@breuer.org>
* gtk/gtkmenuitem.c gtk/gtkmessagedialog.c gtk/gtkplug.c : must return
......
......@@ -1867,9 +1867,6 @@ gtk_print_run_page_setup_dialog (GtkWindow *parent,
devmode_to_settings (settings, pagesetupdlg->hDevMode);
}
if (free_settings)
g_object_unref (settings);
if (res)
{
gtk_page_setup_set_orientation (page_setup,
......@@ -1906,6 +1903,9 @@ gtk_print_run_page_setup_dialog (GtkWindow *parent,
unit);
}
if (free_settings)
g_object_unref (settings);
return page_setup;
}
......
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