diff --git a/src/autotests/HistoryTest.cpp b/src/autotests/HistoryTest.cpp index 078d93a1..ae729fd2 100644 --- a/src/autotests/HistoryTest.cpp +++ b/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());