glib-compile-schemas: Fix minor memory leaks in error paths

Spotted while running valgrind on gsettings-test, as per the previous
commit.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Reviewed-by: nobody
This commit is contained in:
Philip Withnall
2018-04-11 11:03:03 +01:00
parent fbbad525a5
commit 3ba2f8333b

View File

@@ -745,6 +745,8 @@ key_state_free (gpointer data)
{
KeyState *state = data;
g_free (state->child_schema);
if (state->type)
g_variant_type_free (state->type);
@@ -880,6 +882,8 @@ schema_state_free (gpointer data)
g_free (state->path);
g_free (state->gettext_domain);
g_free (state->extends_name);
g_free (state->list_of);
g_hash_table_unref (state->keys);
g_slice_free (SchemaState, state);
}