┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/kitemlistcontrollerexpandtest.cpp3
-rw-r--r--src/tests/kitemlistcontrollertest.cpp5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/tests/kitemlistcontrollerexpandtest.cpp b/src/tests/kitemlistcontrollerexpandtest.cpp
index cb84fb693..06e58fe6b 100644
--- a/src/tests/kitemlistcontrollerexpandtest.cpp
+++ b/src/tests/kitemlistcontrollerexpandtest.cpp
@@ -84,6 +84,9 @@ void KItemListControllerExpandTest::initTestCase()
}
void KItemListControllerExpandTest::cleanupTestCase()
{
+ delete m_spyDirectoryLoadingCompleted;
+ m_spyDirectoryLoadingCompleted = nullptr;
+
delete m_container;
m_container = nullptr;
diff --git a/src/tests/kitemlistcontrollertest.cpp b/src/tests/kitemlistcontrollertest.cpp
index 22f423f6c..2b0e5456d 100644
--- a/src/tests/kitemlistcontrollertest.cpp
+++ b/src/tests/kitemlistcontrollertest.cpp
@@ -30,7 +30,7 @@ class KItemListControllerTestStyle : public QProxyStyle
Q_OBJECT
public:
KItemListControllerTestStyle(QStyle *style)
- : QProxyStyle(style)
+ : QProxyStyle(nullptr)
, m_activateItemOnSingleClick((bool)style->styleHint(SH_ItemView_ActivateItemOnSingleClick))
{
}
@@ -165,6 +165,9 @@ void KItemListControllerTest::cleanupTestCase()
delete m_container;
m_container = nullptr;
+ delete m_testStyle;
+ m_testStyle = nullptr;
+
delete m_testDir;
m_testDir = nullptr;
}