Commit da2c73ad authored by Marc Mutz's avatar Marc Mutz
Browse files

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: default avatarThiago Macieira <thiago.macieira@intel.com>
parent 24314c73
Showing with 7 additions and 3 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment