Commit 078ddc1
committed
Memory leak for Cursor useblit=True on PySide/Python3
There is a memory leak in PySide under Python3. When creating
QImage objects from a data buffer the reference to the buffer
is not released. This leads to a memory leak when moving the
cursor around the window, and eventually a crash.
A workaround is to manually set the reference counter to the
correct value `1` after creating the QImage object. This is
a temporary local variable, and no side effects are expected.1 parent 7c7e614 commit 078ddc1
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
128 | 132 | | |
129 | 133 | | |
130 | 134 | | |
| |||
0 commit comments