GNOME Bugzilla – Bug 666796
GIR parser doesn't use ref/unref functions when appropriate
Last modified: 2016-11-30 16:32:17 UTC
GIR doesn't support classes that are reference counted but not GObject-derived. The GIR parser should automatically detect ref/unref methods and use them. Examples from GIO include DBus*Info, FileAttributeInfoList, and FileAttributeMatcher
Created attachment 254231 [details] [review] Discover ref/unref methods Adds the ability to find ref/unref methods and add corresponding ccode attributes. The patch includes a rebuild of all gir bindings to pick up the changes.
Review of attachment 254231 [details] [review]: Ok, thanks.
Review of attachment 254231 [details] [review]: commit f6fcaa5420136aae54aa08310836d4d51ab21f1a Author: Rico Tzschichholz <ricotz@ubuntu.com> Date: Fri Sep 6 20:29:26 2013 +0200 girparser: Discover ref/unref methods Add ability to find ref/unref methods and add corresponding ccode attributes. Additionally rebuild all gir bindings to pick up the changes. https://bugzilla.gnome.org/show_bug.cgi?id=666796