gtk+ r20712 - in branches/gtk-2-12: . gtk
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20712 - in branches/gtk-2-12: . gtk
- Date: Tue, 1 Jul 2008 05:20:08 +0000 (UTC)
Author: matthiasc
Date: Tue Jul 1 05:20:08 2008
New Revision: 20712
URL: http://svn.gnome.org/viewvc/gtk+?rev=20712&view=rev
Log:
* gtk/gtkprintoperation-win32.c (gtk_print_run_page_setup_dialog) :
Fix life cycle to avoid crash. [#536966]
Modified:
branches/gtk-2-12/ChangeLog
branches/gtk-2-12/gtk/gtkprintoperation-win32.c
Modified: branches/gtk-2-12/gtk/gtkprintoperation-win32.c
==============================================================================
--- branches/gtk-2-12/gtk/gtkprintoperation-win32.c (original)
+++ branches/gtk-2-12/gtk/gtkprintoperation-win32.c Tue Jul 1 05:20:08 2008
@@ -1859,9 +1859,6 @@
devmode_to_settings (settings, pagesetupdlg->hDevMode);
}
- if (free_settings)
- g_object_unref (settings);
-
if (res)
{
gtk_page_setup_set_orientation (page_setup,
@@ -1898,6 +1895,9 @@
unit);
}
+ if (free_settings)
+ g_object_unref (settings);
+
return page_setup;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]