Skip to content
  • Emmanuele Bassi's avatar
    binding: Make unbind() release the reference on GBinding · 25a3c872
    Emmanuele Bassi authored
    The automatic memory management of GBinding is not optimal for high
    order languages with garbage collectors semantics. If we leave the
    binding instance inert but still referenced it will be leaked, so one
    solution that does not throw away the baby of C convenience with the
    bathwater of language bindability is to have unbind() perform an
    implicit unref().
    
    Hopefully, C developers will read the documentation and especially the
    note that says that after calling unbind() the reference count on the
    GBinding instance is decreased.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698018
    25a3c872