After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 666796 - GIR parser doesn't use ref/unref functions when appropriate
GIR parser doesn't use ref/unref functions when appropriate
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: GObject Introspection
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-12-24 10:00 UTC by Evan Nemerson
Modified: 2016-11-30 16:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Discover ref/unref methods (19.55 KB, patch)
2013-09-06 07:03 UTC, Rico Tzschichholz
committed Details | Review

Description Evan Nemerson 2011-12-24 10:00:25 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
Comment 1 Rico Tzschichholz 2013-09-06 07:03:49 UTC
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.
Comment 2 Luca Bruno 2013-09-06 07:26:55 UTC
Review of attachment 254231 [details] [review]:

Ok, thanks.
Comment 3 Rico Tzschichholz 2013-09-06 18:37:05 UTC
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