mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 23:16:14 +01:00
girepository/girmodule: Cleanup the builder types hash keys
We were adding new keys but never removing them, so use the proper destroy notify for them and clarify the ownership on the caller.
This commit is contained in:
parent
1b8ef05321
commit
9f4b97bb92
@ -374,7 +374,7 @@ gi_ir_module_build_typelib (GIIrModule *module)
|
||||
restart:
|
||||
gi_ir_node_init_stats ();
|
||||
strings = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
types = g_hash_table_new (g_str_hash, g_str_equal);
|
||||
types = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
|
||||
nodes_with_attributes = NULL;
|
||||
n_entries = g_list_length (module->entries);
|
||||
|
||||
|
@ -1477,7 +1477,8 @@ gi_ir_node_build_typelib (GIIrNode *node,
|
||||
else
|
||||
{
|
||||
unique_types_count += 1;
|
||||
g_hash_table_insert (types, s, GUINT_TO_POINTER(*offset2));
|
||||
g_hash_table_insert (types, g_steal_pointer (&s),
|
||||
GUINT_TO_POINTER(*offset2));
|
||||
|
||||
blob->offset = *offset2;
|
||||
switch (type->tag)
|
||||
|
Loading…
Reference in New Issue
Block a user