diff options
author | Jody Goldberg <jody@gnome.org> | 2008-06-21 00:53:17 +0000 |
---|---|---|
committer | Jody Goldberg <jody@src.gnome.org> | 2008-06-21 00:53:17 +0000 |
commit | 87caf0d3aeb07afd25fc5424de525d74c7a8da44 (patch) | |
tree | 152330c5a4c28f702057729cd03c7273c6b0b3e6 /gtk/gtkprintoperation-win32.c | |
parent | b4b24c6484fee3f27c73ba0337194ed14caad2b5 (diff) | |
download | gtk+-87caf0d3aeb07afd25fc5424de525d74c7a8da44.tar.gz |
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
Diffstat (limited to 'gtk/gtkprintoperation-win32.c')
-rw-r--r-- | gtk/gtkprintoperation-win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkprintoperation-win32.c b/gtk/gtkprintoperation-win32.c index 53732980f4..d306a8ad63 100644 --- a/gtk/gtkprintoperation-win32.c +++ b/gtk/gtkprintoperation-win32.c @@ -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; } |