qt5base-lts/tests/auto/widgets/itemviews
Andreas Buhr ec7989aa66 Fix memory leak in tst_qtreewidget
Invalid inserts of items are tested. However, on an invalid insert
of QTreeWidgetItem into QTreeWidget, the QTreeWidget does not take
ownership of the to-be-inserted items. These items were leaked in
the past.
This patch introduces a scope-guard, so the items are not leaked.

Change-Id: Ib53ac02605c3a3c0bd1ae69bbd0876f860d08093
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2022-05-18 10:58:05 +00:00
..
qabstractitemview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qcolumnview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qdatawidgetmapper Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qfileiconprovider Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qheaderview QtWidgets: restore Qt 5 compatibility for save/restore state 2022-05-18 02:21:31 +02:00
qitemdelegate Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qitemeditorfactory Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qitemview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlistview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlistwidget Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtableview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtablewidget Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtreeview Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtreewidget Fix memory leak in tst_qtreewidget 2022-05-18 10:58:05 +00:00
qtreewidgetitemiterator Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
CMakeLists.txt CMake: Regenerate subdir test projects 2020-07-09 09:38:39 +02:00