PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 893 - Shiboken leak reference in the parent control
: Shiboken leak reference in the parent control
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: Shiboken
: HEAD
: PC Linux
: P2 critical
Assigned To: Marcelo Lira
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-18 00:13 EEST by renato filho
Modified: 2011-07-22 22:12 EEST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renato filho 2011-06-18 00:13:14 EEST
if a parent object came from C++, and this is destroyed on python side this
leave a reference on the python child object.


Example:
 o = ObjectType() # this create o with refcount = 1

 # getCppParent() return a c++ object unknown by shiboken
 o.getCppParent().setObjectName('parent') # this increment the o refcount to  2
 o.getCppParent().setObjectName('parent') # this increment the o refcount to  3
 o.getCppParent().setObjectName('parent') # this increment the o refcount to  4
Comment 1 renato filho 2011-06-30 00:11:17 EEST
fixed on shiboken commit:

commit cc52b6b102c2311499128609ca47a33c452036f1
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Fri Jun 17 18:10:21 2011 -0300
Comment 2 renato filho 2011-07-22 22:12:55 EEST
release 1.0.5