fix test memory leak

wilder-portage
Kurt Hindenburg 8 years ago
parent 2c4f288d47
commit e281b226bf
  1. 4
      src/autotests/HistoryTest.cpp

@ -109,6 +109,8 @@ void HistoryTest::testHistoryScroll()
QCOMPARE(historyTypeNone.isUnlimited(), false);
QCOMPARE(historyTypeNone.maximumLineCount(), 0);
delete historyScroll;
// File
historyScroll = new HistoryScrollFile(QStringLiteral("test.log"));
QVERIFY(historyScroll->hasScroll());
@ -121,6 +123,8 @@ void HistoryTest::testHistoryScroll()
QCOMPARE(historyTypeFile.isUnlimited(), true);
QCOMPARE(historyTypeFile.maximumLineCount(), -1);
delete historyScroll;
// Compact
historyScroll = new CompactHistoryScroll(42);
QVERIFY(historyScroll->hasScroll());

Loading…
Cancel
Save