gtk+ r20660 - in trunk: . gtk



Author: jody
Date: Sat Jun 21 00:53:17 2008
New Revision: 20660
URL: http://svn.gnome.org/viewvc/gtk+?rev=20660&view=rev

Log:
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]


Modified:
   trunk/ChangeLog
   trunk/gtk/gtkprintoperation-win32.c

Modified: trunk/gtk/gtkprintoperation-win32.c
==============================================================================
--- trunk/gtk/gtkprintoperation-win32.c	(original)
+++ trunk/gtk/gtkprintoperation-win32.c	Sat Jun 21 00:53:17 2008
@@ -1867,9 +1867,6 @@
 	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 @@
 					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]