Free group_hash. (#503420, Christian Persch)

2007-12-13  Matthias Clasen  <mclasen@redhat.com>

        * glib/gkeyfile.c (g_key_file_clear): Free group_hash.
        (#503420, Christian Persch)


svn path=/trunk/; revision=6107
This commit is contained in:
Matthias Clasen 2007-12-13 13:56:08 +00:00 committed by Matthias Clasen
parent 77162a7c7c
commit 20d002d466
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-12-13 Matthias Clasen <mclasen@redhat.com>
* glib/gkeyfile.c (g_key_file_clear): Free group_hash.
(#503420, Christian Persch)
2007-12-12 16:06:11 Tim Janik <timj@imendio.com>
* tests/testglib.c: split up tests and reworked code to use

View File

@ -236,6 +236,9 @@ g_key_file_clear (GKeyFile *key_file)
g_key_file_remove_group_node (key_file, group_node);
}
g_hash_table_destroy (key_file->group_hash);
key_file->group_hash = NULL;
g_warn_if_fail (key_file->groups == NULL);
}