girepository: Fix memory leak

In g_irepository_get_object_gtype_interfaces()
This commit is contained in:
Philip Chimento 2019-10-10 13:34:23 -07:00
parent 590421cf14
commit fcc94454c1

View File

@ -1036,6 +1036,8 @@ g_irepository_get_object_gtype_interfaces (GIRepository *repository,
g_hash_table_insert (repository->priv->interfaces_for_gtype, (gpointer) gtype,
cache);
g_free (interfaces);
}
*n_interfaces_out = cache->n_interfaces;