diff options
author | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:19:15 +0300 |
---|---|---|
committer | Simo Fält <simo.falt@qt.io> | 2023-05-25 11:19:15 +0300 |
commit | d8f02ce77a4143aa4e7e6c4f7892e6a943c46b3c (patch) | |
tree | eb92573ddeb44c25697f2d883d243a89c0d98b68 /sources/pyside2/PySide2/templates/gui_common.xml | |
parent | ca0519cb3f6b62e3b61ba74f0c60eac891dd3a15 (diff) | |
parent | bd4180ffdd47d423b0bd2b995b09df474b8c5a81 (diff) |
Merge tag 'v5.15.5-lts' into tqtc/lts-5.15-opensourcev5.15.5-lts-lgpl
Qt For Python Release 5.15.5
Change-Id: Id8648afb982e4f1354257a0b523bc9c6f1acce2a
Diffstat (limited to 'sources/pyside2/PySide2/templates/gui_common.xml')
-rw-r--r-- | sources/pyside2/PySide2/templates/gui_common.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside2/PySide2/templates/gui_common.xml b/sources/pyside2/PySide2/templates/gui_common.xml index 16116877f..1a7406799 100644 --- a/sources/pyside2/PySide2/templates/gui_common.xml +++ b/sources/pyside2/PySide2/templates/gui_common.xml @@ -80,8 +80,9 @@ </template> <template name="qimage_buffer_constructor"> - auto *ptr = reinterpret_cast<uchar *>(Shiboken::Buffer::copyData(%PYARG_1)); - %0 = new %TYPE(ptr, %ARGS, std::free); + Py_INCREF(%PYARG_1); + auto ptr = reinterpret_cast<uchar*>(Shiboken::Buffer::getPointer(%PYARG_1)); + %0 = new %TYPE(ptr, %ARGS, imageDecrefDataHandler, %PYARG_1); </template> <template name="qcolor_repr"> |