diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-09-27 10:22:46 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-09-28 04:56:48 +0000 |
commit | da2c73ad2b84ef9d58a23fa880c05ca33a0053e5 (patch) | |
tree | 3a49bf37d7c54d2e71a61452abce89fbd18d0a31 /bin | |
parent | QTapAndHoldGestureRecognizer: Fix several UBs (invalid cast) in recognize() (diff) | |
download | qtbase-da2c73ad2b84ef9d58a23fa880c05ca33a0053e5.tar.xz qtbase-da2c73ad2b84ef9d58a23fa880c05ca33a0053e5.zip |
Plug memleaks in tst_QWidget
We need to delete the style returned from QStyleFactory::create()
ourselves, so put them into a QScopedPointer.
The alternative would have been to create this once, as a member
of tst_QWidget, but this is the minimal approach that ensures
behavior just as the old code, but without the leak.
Change-Id: I527f1031c57be6f05942f4acc057e7dae1af2571
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions