Qt Declarative (Quick 2)
Go to file
Jaeyoon Jung 784aad8fd0 QQmlListModel: Fix C++ owned object getting destroyed
If an object is explicitly set as C++ owned, it should not be turned to
destructible in any case. explicitIndestructibleSet flag is used for
that and thus it should not be unset in any case.
This fixes an issue where a C++ owned object could be destroyed by GC
when it is added to a ListModel. An object is supposed to be set as
destructible implicitly when it is used as a return value from JS unless
explicitIndestructibleSet is set.

Fixes: QTBUG-96167
Change-Id: Iad06847e56e29dd1b20146be108d7f747d8474dc
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Jaeyoon Jung <jaeyoon.jung@lge.com>
(cherry picked from commit 219ca3bf2b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2021-09-02 10:42:56 +00:00
cmake Fix missing 'We mean it' warning for generated qml_compile_hash_p.h 2021-03-31 17:06:00 +02:00
coin CMake: Enable enforcing CI tests 2020-07-13 18:01:41 +02:00
dist Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00
examples Rename shapes example qml files according to what they demonstrate 2021-09-01 19:31:58 +00:00
features
src QQmlListModel: Fix C++ owned object getting destroyed 2021-09-02 10:42:56 +00:00
tests QQmlListModel: Fix C++ owned object getting destroyed 2021-09-02 10:42:56 +00:00
tools Allow QML plugin's CMake target name to be specified for qmldir file 2021-08-20 18:06:28 +02:00
.cmake.conf Add conanfile.py to support builds with Conan 2021-06-21 10:07:38 +00:00
.gitattributes Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00
.gitignore Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00
.gitmodules
.qmake.conf Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00
.tag
CMakeLists.txt Use fixed qt_add_resource BASE argument 2021-05-22 21:12:26 +02:00
LICENSE.FDL
LICENSE.GPL2
LICENSE.GPL3
LICENSE.GPL3-EXCEPT
LICENSE.GPLv3
LICENSE.LGPL3
LICENSE.LGPLv3
README.md Rewrite README.md 2021-08-13 10:48:11 +02:00
conanfile.py Conan: Split version string interpolation into separate function 2021-06-28 08:48:00 +00:00
configure.cmake CMake: Add missing qt_cmdline.cmake files 2021-04-16 11:03:59 +02:00
dependencies.yaml Update dependencies on '6.2' in qt/qtdeclarative 2021-09-02 05:20:30 +03:00
qt_cmdline.cmake Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00
qtdeclarative.doxy
sync.profile Merge qtquickcontrols2 into qtdeclarative 2021-08-06 16:23:00 +02:00