• Steve Fr茅cinaux's avatar
    Fix wrong refcount when calling introspected widget constructors · 7bc41228
    Steve Fr茅cinaux authored
    Introspected widget constructors, like Gtk.Button.new(), can return
    objects with a floating reference, which was then reffed by pygobject,
    resulting in two references, despite the object is not owned by anyone.
    
    This patch uses ref_sink() when pygobject takes its own reference, to
    avoid adding that extra reference. Hence we now claim ownership on
    objects returned by constructors with transfer=none (which is the case
    for nearly all the widget constructors, despite the floating ref).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=640868
    7bc41228
Name
Last commit
Last update
codegen Loading commit data...
demos/gtk-demo Loading commit data...
docs Loading commit data...
examples Loading commit data...
gi Loading commit data...
glib Loading commit data...
gobject Loading commit data...
m4 Loading commit data...
tests Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog.pre-2.18 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
MANIFEST.in Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
PKG-INFO.in Loading commit data...
README Loading commit data...
README.win32 Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
dsextras.py Loading commit data...
git.mk Loading commit data...
pre-commit.hook Loading commit data...
pygi-convert.sh Loading commit data...
pygobject-2.0-uninstalled.pc.in Loading commit data...
pygobject-2.0.pc.in Loading commit data...
pygobject.doap Loading commit data...
pygobject_postinstall.py Loading commit data...
pygtk.py Loading commit data...
setup.py Loading commit data...