summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui
diff options
context:
space:
mode:
authorAndreas Buhr <andreas.buhr@qt.io>2021-07-08 10:06:07 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-05-18 10:58:05 +0000
commitec7989aa66f172e731667e8cf647932262956423 (patch)
tree296beb5e79363cf1aa2c742ecff36e75cb5ca197 /tests/auto/gui
parent76e441c9ee0b8131edb503bfa8de9b26798fc95d (diff)
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>
Diffstat (limited to 'tests/auto/gui')
0 files changed, 0 insertions, 0 deletions