gtypemodule: Add assertions in finalize()

This commit is contained in:
Gaël Bonithon 2023-12-21 00:01:16 +01:00
parent 4c23a17752
commit 55e2d9f6a7

View File

@ -115,6 +115,10 @@ g_type_module_finalize (GObject *object)
g_free (module->name);
/* in case a subclass does not chain-up to parent in dispose() */
g_assert (module->type_infos == NULL);
g_assert (module->interface_infos == NULL);
G_OBJECT_CLASS (parent_class)->finalize (object);
}