Commit 1ec985a1 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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
parent 2e7514d0
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,
......
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,
......
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,
......
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,
......
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,
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment