8000 Add a comment to revert PR #1323 in the future · matplotlib/matplotlib@43e8be2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 43e8be2

Browse files
committed
Add a comment to revert PR #1323 in the future
1 parent a798b16 commit 43e8be2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/backends/backend_qt4agg.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,12 @@ def paintEvent( self, e ):
114114
p.drawRect( self.rect[0], self.rect[1], self.rect[2], self.rect[3] )
115115
p.end()
116116

117+
# This works around a bug in PySide 1.1.2 on Python 3.x,
118+
# where the reference count of stringBuffer is incremented
119+
# but never decremented by QImage.
120+
# TODO: revert PR #1323 once the issue is fixed in PySide.
117121
del qImage
118122
if refcnt != sys.getrefcount(stringBuffer):
119-
# Fix a huge memory leak in PySide on Python 3
120123
_decref(stringBuffer)
121124
else:
122125
bbox = self.blitbox

0 commit comments

Comments
 (0)
0