--- /var/tmp/glib-2.6.1/glib/gkeyfile.c	2004-11-27 03:59:09.000000000 +0100
+++ gkeyfile.c	2005-02-01 04:30:28.147821192 +0100
@@ -2759,8 +2759,9 @@
 		 G_KEY_FILE_ERROR_GROUP_NOT_FOUND,
 		 _("Key file does not have group '%s'"),
 		 group_name);
+  else
+    g_key_file_remove_group_node (key_file, group_node);
 
-  g_key_file_remove_group_node (key_file, group_node);
 }
 
 static void
