summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt
diff options
context:
space:
mode:
authorTim Blechmann <tim.blechmann@qt.io>2025-10-23 14:34:11 +0800
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2025-12-22 06:44:07 +0000
commitbc9b70cc6d3c1ec5285c3bd91180509d1b19575d (patch)
treec99f296e955f55b302c5d978aacf3e67a4fad3e0 /tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt
parent559e6b7ba46770364ddec048c41270d5171fefdd (diff)
QCoreApplication: fix memory leak in permission requestsHEADdev
PermissionReceiver is allocated, but never freed if finalizePermissionRequest is not invoked. We convert it to a shared pointer, to keep it alive via the lambda captures until the permission request is finalized (we cannot use a unique_ptr until move_only_function is usable). If the finalizer is not called, the reference will be dropped and the PermissionReceiver will be destroyed. Amends 0bd1fc006097e481d8b92ee1c5246ffa1ae9379f Fixes: QTBUG-141432 Pick-to: 6.11 6.10 Change-Id: I996afe0be091677d2b9bedbc61dce3369a43b852 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/benchmarks/widgets/kernel/qapplication/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions