GNOME Bugzilla – Bug 711798
giomodule: Fix leaks in module loading
Last modified: 2018-05-24 15:55:53 UTC
During loading giomodule leaks the various modules. This isn't a big deal because it's done only once.
Created attachment 259464 [details] [review] giomodule: Fix leaks in module loading
Review of attachment 259464 [details] [review]: looks right
Attachment 259464 [details] pushed as dc72039 - giomodule: Fix leaks in module loading
This makes the glib-networking tests crash
Yes, this is being reverted temporarily, as it seems to depend on other gcleanup patches. I would be interested to see info about the crash though...
So here's why this caused problems: * giomodule was leaking, perhaps on purpose (which this patched fixed) * GTypeModule doesn't allow itself to be finalized * Modules were finalizing GTypeModule in their unload code. Fixing the leaks caused all of these to come together. However I think that GTypeModule should be finalizable, at the very least in context of unloading a module / running gcleanup. I'm not an expert enough on GTypeModule to say whether GTypeModule should be finalizable at *other* times, but it should be finalizable in those contexts. With all that said, this bug should depend on bug #711778. * specifically this patch: https://bug711778.bugzilla-attachments.gnome.org/attachment.cgi?id=259432 * And likely also the GType cleanup code.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/784.