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 811 - QTextBlockUserData objects are never freed after being retrieved from the textblock at least once
: QTextBlockUserData objects are never freed after being retrieved from the tex...
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: PySide
: HEAD
: PC Linux
: P2 normal
Assigned To: renato filho
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-06 02:42 EEST by Andy Kittner
Modified: 2011-04-29 18:06 EEST (History)
8 users (show)

See Also:


Attachments
Sample demonstrating incorrect refcount (2.03 KB, text/x-python)
2011-04-06 02:42 EEST, Andy Kittner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Kittner 2011-04-06 02:42:01 EEST
Created attachment 298 [details]
Sample demonstrating incorrect refcount

while debugging some memory issues we are having I noticed that there is a
large number of QTextBlockUserData objects still around even after anything
that could still reference them was long gone. As it seems every time
QTextBlock::userData() is called the refcount goes up by one (even if you
discard the result).
The same problem seems to exist when using
QSyntaxHighlighter::currentBlockUserData()

I'll attach a minimal sample that demonstrates the problem
Comment 1 Hugo Parente Lima 2011-04-06 16:18:20 EEST
Thanks for report this ref leak.
Comment 2 renato filho 2011-04-20 15:34:29 EEST
fixed on pyside commit:
commit 709420df8e0954b80c8386666beb6f74b8eae94f
Author: Renato Filho <renato.filho@openbossa.org>
Date:   Tue Apr 19 13:38:01 2011 -0300
Comment 3 renato filho 2011-04-29 18:06:28 EEST
PySide release 1.0.2