gconf-editor r1437 - in trunk: . src
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: gconf-editor r1437 - in trunk: . src
- Date: Fri, 31 Oct 2008 00:51:49 +0000 (UTC)
Author: cosimoc
Date: Fri Oct 31 00:51:48 2008
New Revision: 1437
URL: http://svn.gnome.org/viewvc/gconf-editor?rev=1437&view=rev
Log:
2008-10-31  Cosimo Cecchi  <cosimoc gnome org>
	* src/gconf-editor-window.c: (gconf_editor_window_finalize):
	Don't unref the GConfClient if the window type is not the normal one.
Modified:
   trunk/ChangeLog
   trunk/src/gconf-editor-window.c
Modified: trunk/src/gconf-editor-window.c
==============================================================================
--- trunk/src/gconf-editor-window.c	(original)
+++ trunk/src/gconf-editor-window.c	Fri Oct 31 00:51:48 2008
@@ -1421,8 +1421,14 @@
 		gconf_client_notify_remove (client, window->icons_notify_id);
 
 	g_object_unref (client);
-	g_object_unref (window->client);
-	
+
+	/* for some reason, the program crashes if I try to unref the client for
+         * the other window types.
+         */
+	if (window->type == GCONF_EDITOR_WINDOW_TYPE_NORMAL) {
+	  g_object_unref (window->client);
+        }
+
 	G_OBJECT_CLASS (gconf_editor_window_parent_class)->finalize (object);
     
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]