Incorrect transfer annotation for g_binding_unbind.
@tmiasko
Submitted by Tomasz Miąsko Link to original bug (#795796)
Description
Created attachment 371659 Fix transfer annotation for g_binding_unbind ()
Currently gir data incorrectly indicate that no ownership is transferred when passing binding instance to g_binding_unbind, while this function actually releases the reference that is being held on the binding instance.
This causes numerous critical warnings when used from bindings, for example in Python test case below. Attached patch fixes the issue.
from gi.repository import GObject
class A(GObject.Object):
def __init__(self):
super().__init__()
self.value = 0
@GObject.Property(type=int)
def test(self):
return self.value
@test.setter
def set_test(self, value):
self.value = value
a = A()
b = A()
binding = a.bind_property('test', b, 'test')
del a
del b
binding.unbind()
Patch 371659, "Fix transfer annotation for g_binding_unbind ()":
0001-Fix-transfer-annotation-for-g_binding_unbind.patch