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
Please register or sign in to comment