qtconnectivity/tests
Ivan Solovev 88d89fe62e Fix memory leak in QNdefNfcSmartPosterRecord
The pointers in QNdefNfcSmartPosterRecordPrivate were only deleted
in the QNdefNfcSmartPosterRecord::cleanup() method, but it was not
called at destruction. Rewrite the code to make sure that the
destructor of Private always cleans up the memory.

A more modern approach would be to use std::optional, but I leave it
for a follow-up patch, because I want this change to be picked down
to 5.15.

Fixes: QTBUG-136576
Pick-to: 6.8 6.5 5.15
Change-Id: I5ca3ae24d638e4b28bc4f5f92604ec0c1564b489
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
(cherry picked from commit 274b9ea625)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-05-06 16:40:32 +00:00
..
auto Fix memory leak in QNdefNfcSmartPosterRecord 2025-05-06 16:40:32 +00:00
bluetoothtestdevice Correct license for test files 2024-04-04 08:32:17 +01:00
bttestui Correct license for test files 2024-04-04 08:32:17 +01:00
global
manual Correct license for examples files 2024-04-04 08:32:24 +01:00
shared Correct license for test files 2024-04-04 08:32:17 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 15:42:36 +02:00