Skip to content
Commit f6fa5dd8 authored by John (J5) Palmieri's avatar John (J5) Palmieri
Browse files

Fix refcount bug by not creating python wrapper during gobject init stage

* This only applys to python subclasses of GObject which are instantiated
   using GObject.new
 * Because we were creating the wrapper when the gobject is initialized
   and then again calling pygobject_new_full the wrapper would get
   ref'ed twice.
 * we could not simply Py_DECREF the wrapper due to the fact that
   non-subclassed objects (e.g. GObject.Object) instantiated via
   new do not run the same initialization code and would not have the
   extra ref
 * solution was to simply not create the wrapper during initialization
   because if it doesn't exist when pygobject_new_full is called
   it gets created and registered there
 * move the call to __init__ into pyg_object_new

https://bugzilla.gnome.org/show_bug.cgi?id=657403
parent 61b64a65
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment