GNOME Bugzilla – Bug 751166
Returned boxed type with (transfer none) should avoid copying the boxed structure
Last modified: 2018-01-10 20:49:50 UTC
This is a follow up of https://bugzilla.gnome.org/show_bug.cgi?id=736896 Basically the idea here is that in the case where we have a (transfer none) getter, we should make sure that the object owning the boxed structure is not destroyed during the lifetime of the structure itself. That can be achieved by adding a python reference to the object to the boxed structure. You can read the description of the problem an explanation of that solution Nicolas Duschene brought in the previously linked bug report: https://bugzilla.gnome.org/show_bug.cgi?id=736896#c27
Any idea?
-- 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/pygobject/issues/101.