Don't destroy the lookup map if it is NULL.

2004-10-24  Matthias Clasen  <mclasen@redhat.com>

	* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
	destroy the lookup map if it is NULL.

20
This commit is contained in:
Matthias Clasen 2004-10-24 05:49:14 +00:00 committed by Matthias Clasen
parent 2e7514d052
commit 1ec985a141
6 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-10-24 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
destroy the lookup map if it is NULL.
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,

View File

@ -1,3 +1,8 @@
2004-10-24 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
destroy the lookup map if it is NULL.
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,

View File

@ -1,3 +1,8 @@
2004-10-24 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
destroy the lookup map if it is NULL.
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,

View File

@ -1,3 +1,8 @@
2004-10-24 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
destroy the lookup map if it is NULL.
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,

View File

@ -1,3 +1,8 @@
2004-10-24 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_remove_group_node): Don't
destroy the lookup map if it is NULL.
2004-10-23 Matthias Clasen <mclasen@redhat.com>
* glib/gasyncqueue.c, glib/gatomic.c, glib/gdate.c,

View File

@ -2168,8 +2168,11 @@ g_key_file_remove_group_node (GKeyFile *key_file,
g_list_free (group->key_value_pairs);
group->key_value_pairs = NULL;
g_hash_table_destroy (group->lookup_map);
group->lookup_map = NULL;
if (group->lookup_map)
{
g_hash_table_destroy (group->lookup_map);
group->lookup_map = NULL;
}
g_free ((gchar *) group->name);
g_free (group);