diff options
Diffstat (limited to 'src/plugins/tracing/qctfplugin.cpp')
| -rw-r--r-- | src/plugins/tracing/qctfplugin.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/tracing/qctfplugin.cpp b/src/plugins/tracing/qctfplugin.cpp index 8f2245bb286..daa2b3637e1 100644 --- a/src/plugins/tracing/qctfplugin.cpp +++ b/src/plugins/tracing/qctfplugin.cpp @@ -22,9 +22,13 @@ public: ~QCtfTracePlugin() { m_cleanup = true; + *m_shutdown = true; QCtfLibImpl::cleanup(); } - + void shutdown(bool *shutdown) override + { + m_shutdown = shutdown; + } bool tracepointEnabled(const QCtfTracePointEvent &point) override { if (m_cleanup) @@ -51,6 +55,7 @@ public: } private: bool m_cleanup = false; + bool *m_shutdown = nullptr; }; #include "qctfplugin.moc" |
