summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbitarray.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2025-03-26 16:47:26 +0100
committerMarc Mutz <marc.mutz@qt.io>2025-03-28 02:50:59 +0100
commit20d5a3cda94e474245351542eeac526a0f759a02 (patch)
tree44ed84ced1a165269aad537060e9864fdf3c2490 /src/corelib/tools/qbitarray.cpp
parent90a82ad8e59792fb430a1a11c9a0c2f94878303e (diff)
tst_QLayout: fix memleak in removeWidget()
A QLayout that was removeItem()ed from its parent layout no longer is deleted by it and has to be deleted manually, which the test function failed to do. To maintain the rest of the test function as faithfully as possible, don't delete the layout right after the removeItem(), but delay until the exit from the test function, using unique_ptr. Amends 867c0b8d8a53974074b1fff5b132f3ae9f150066. Pick-to: 6.9 6.8 6.5 5.15 Change-Id: Ia915d29bda348849033a6b9eb282dcb26a68c383 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
Diffstat (limited to 'src/corelib/tools/qbitarray.cpp')
0 files changed, 0 insertions, 0 deletions