diff options
| author | Christian Tismer <tismer@stackless.com> | 2020-05-14 14:45:09 +0200 |
|---|---|---|
| committer | Christian Tismer <tismer@stackless.com> | 2020-05-14 23:33:02 +0200 |
| commit | 48d2fb79774dad5317942fce9deb3e958a6818c5 (patch) | |
| tree | 1dfcbd3917b2a85fd00461a114974ead3f801ab9 /sources/pyside2/PySide2/support/deprecated.py | |
| parent | d6b81b6303957803582d0fae95a9b25483d8e7f2 (diff) | |
shiboken: Make AutoDecRef safe
The well-known Shiboken::AutoDecref construction for
easier refcount handling has a serious flaw.
In Python's object.h, this is called a naive implementation
that can be deadly when deallocating object containers.
This patch uses the same idea as the Python's Py_XSETREF
macro.
Task-number: PYSIDE-15
Change-Id: I7a36713790f35df89736437d236c8f1f58d7be1e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'sources/pyside2/PySide2/support/deprecated.py')
0 files changed, 0 insertions, 0 deletions
