qt5base-lts/tests/auto/corelib/itemmodels
Marc Mutz 65647d54b9 tst_QSortFilterProxyModel: fix mem-leaks II: sortStable()
Like in 9f8449a054, for
doubleProxySelectionSetSourceModel(), the sortStable() test also
leaked _everything_. Fix in the same way, by allocating model and view
on the stack intead of the heap.

With this patch, tst_QSortFilterProxyModel is now asan-, but not
ubsan-clean (and, because of
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110704, asan still
reports a leak in cp-demangle.c, which should be™ gone once we fix the
rest of QTBUG-99563).

Pick-to: 6.6 6.5 6.2 5.15
Task-number: QTBUG-115264
Change-Id: Ic0e833d7336435e324457f9d9667ee8573a7dafc
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2023-07-19 04:51:26 +00:00
..
qabstractitemmodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qabstractproxymodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qconcatenatetablesproxymodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qidentityproxymodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qitemmodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qitemselectionmodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsortfilterproxymodel tst_QSortFilterProxyModel: fix mem-leaks II: sortStable() 2023-07-19 04:51:26 +00:00
qsortfilterproxymodel_recursive CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qsortfilterproxymodel_regularexpression CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstringlistmodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qtransposeproxymodel CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00