diff options
Diffstat (limited to 'autotests/kconfig_compiler/test5.cpp.ref')
| -rw-r--r-- | autotests/kconfig_compiler/test5.cpp.ref | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/autotests/kconfig_compiler/test5.cpp.ref b/autotests/kconfig_compiler/test5.cpp.ref index 2b50222c..1272b446 100644 --- a/autotests/kconfig_compiler/test5.cpp.ref +++ b/autotests/kconfig_compiler/test5.cpp.ref @@ -10,7 +10,7 @@ class Test5Helper  {    public:      Test5Helper() : q(nullptr) {} -    ~Test5Helper() { delete q; } +    ~Test5Helper() { delete q; q = nullptr; }      Test5Helper(const Test5Helper&) = delete;      Test5Helper& operator=(const Test5Helper&) = delete;      Test5 *q; @@ -89,6 +89,8 @@ QColor defaultColor[4] = { Qt::red, Qt::blue, Qt::green, Qt::black };  Test5::~Test5()  { -  s_globalTest5()->q = nullptr; +  if (s_globalTest5.exists() && !s_globalTest5.isDestroyed()) { +    s_globalTest5()->q = nullptr; +  }  }  | 
