Commit 90baa7e4 authored by Simon McVittie's avatar Simon McVittie

GKeyFile: free group comments when the group is removed

These were leaked. Valgrind was sad.
Signed-off-by: Simon McVittie's avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666113Reviewed-by: default avatarEmmanuele Bassi <ebassi@linux.intel.com>
parent 9ddb2f80
......@@ -3752,6 +3752,12 @@ g_key_file_remove_group_node (GKeyFile *key_file,
g_warn_if_fail (group->key_value_pairs == NULL);
if (group->comment)
{
g_key_file_key_value_pair_free (group->comment);
group->comment = NULL;
}
if (group->lookup_map)
{
g_hash_table_destroy (group->lookup_map);
......
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