Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 43e8be2

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

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed

‎lib/matplotlib/backends/backend_qt4agg.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_qt4agg.py
+4-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.