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
This commit is contained in:
Jody Goldberg 2008-06-21 00:53:17 +00:00 committed by Jody Goldberg
parent b4b24c6484
commit 87caf0d3ae
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;
}