aboutsummaryrefslogtreecommitdiff
path: root/autotests/kconfig_compiler/test_signal.cpp.ref
diff options
context:
space:
mode:
Diffstat (limited to 'autotests/kconfig_compiler/test_signal.cpp.ref')
-rw-r--r--autotests/kconfig_compiler/test_signal.cpp.ref6
1 files changed, 4 insertions, 2 deletions
diff --git a/autotests/kconfig_compiler/test_signal.cpp.ref b/autotests/kconfig_compiler/test_signal.cpp.ref
index 71ab7a09..378cd2c2 100644
--- a/autotests/kconfig_compiler/test_signal.cpp.ref
+++ b/autotests/kconfig_compiler/test_signal.cpp.ref
@@ -10,7 +10,7 @@ class TestSignalHelper
{
public:
TestSignalHelper() : q(nullptr) {}
- ~TestSignalHelper() { delete q; }
+ ~TestSignalHelper() { delete q; q = nullptr; }
TestSignalHelper(const TestSignalHelper&) = delete;
TestSignalHelper& operator=(const TestSignalHelper&) = delete;
TestSignal *q;
@@ -63,7 +63,9 @@ TestSignal::TestSignal( )
TestSignal::~TestSignal()
{
- s_globalTestSignal()->q = nullptr;
+ if (s_globalTestSignal.exists() && !s_globalTestSignal.isDestroyed()) {
+ s_globalTestSignal()->q = nullptr;
+ }
}
bool TestSignal::usrSave()