diff options
author | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2014-11-11 11:17:04 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2014-11-11 11:31:38 +0200 |
commit | c6ed50e68438e5558e7cda0e36c194a4b99f7f83 (patch) | |
tree | 8cbb330dc82eae3cb11b2202ba0f34bc6e6988bf /tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp | |
parent | a686cb49be8689c5e306e895062f47c37a4f908d (diff) |
Plugged some memory leaks.
Autotests were also made Valgrind friendly by adding
a final one millisecond wait to the end of the test to
allow pending deleteLaters to run.
Also some minor cosmetic cleanup done to autotests.
Change-Id: Ic3719167a22949f243eaf54614e174a681dbe34a
Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Diffstat (limited to 'tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp')
-rw-r--r-- | tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp b/tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp index e5dcfa34..a5df87d2 100644 --- a/tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp +++ b/tests/auto/qstackedbarseries/tst_qstackedbarseries.cpp @@ -64,6 +64,7 @@ void tst_QStackedBarSeries::initTestCase() void tst_QStackedBarSeries::cleanupTestCase() { + QTest::qWait(1); // Allow final deleteLaters to run } void tst_QStackedBarSeries::init() @@ -85,6 +86,7 @@ void tst_QStackedBarSeries::qstackedbarseries() { QStackedBarSeries *barseries = new QStackedBarSeries(); QVERIFY(barseries != 0); + delete barseries; } void tst_QStackedBarSeries::type_data() |