diff options
| author | Sebastian Englbrecht <[email protected]> | 2026-05-23 15:29:20 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2026-05-28 08:59:00 +0000 |
| commit | 3efeaaffd4cb13168e9327ec146f0a40ff9d75af (patch) | |
| tree | 0863b22a21466ae5717f0d5ea55cd75cce2449a5 /src/tests/kitemlistcontrollertest.cpp | |
| parent | 3779fbb7c9f1b22ebc9c61bfcdca42678463b164 (diff) | |
kitemlistcontrollertest: fix memory leaks
Diffstat (limited to 'src/tests/kitemlistcontrollertest.cpp')
| -rw-r--r-- | src/tests/kitemlistcontrollertest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |
