mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
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:
parent
b4b24c6484
commit
87caf0d3ae
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user