libgnome r3705 - in branches/gnome-2-20: . libgnome



Author: stefkost
Date: Wed Apr  9 15:05:21 2008
New Revision: 3705
URL: http://svn.gnome.org/viewvc/libgnome?rev=3705&view=rev

Log:
	* libgnome/gnome-program.c: Unref GConfClient. Bug #525815



Modified:
   branches/gnome-2-20/ChangeLog
   branches/gnome-2-20/libgnome/gnome-program.c

Modified: branches/gnome-2-20/libgnome/gnome-program.c
==============================================================================
--- branches/gnome-2-20/libgnome/gnome-program.c	(original)
+++ branches/gnome-2-20/libgnome/gnome-program.c	Wed Apr  9 15:05:21 2008
@@ -1786,10 +1786,12 @@
 
 	if ((env_var = g_getenv (GNOME_ACCESSIBILITY_ENV)))
 		do_init = atoi (env_var);
-	else
+	else {
+		GConfClient* gc = gconf_client_get_default ();
 		do_init = gconf_client_get_bool (
-			gconf_client_get_default (),
-			GNOME_ACCESSIBILITY_KEY, NULL);
+			gc, GNOME_ACCESSIBILITY_KEY, NULL);
+		g_object_unref (gc);
+	}
 
 	if (do_init)
 		accessibility_invoke (program, TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]