diff options
author | Christiaan Janssen <christiaan.janssen@digia.com> | 2013-06-21 16:36:24 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@digia.com> | 2013-06-24 15:26:02 +0300 |
commit | f86e2a4f725f7aa292520dd5faa7653158863548 (patch) | |
tree | 29cc5880a648282c8085eaedd5c731d1c0ec1bcc | |
parent | a7f03f3b5b62660e4f01749ff6d590d2bb3873c2 (diff) |
QmlProfiler: fix potential crash
Change-Id: I4d8c2ae3e14905fb997fc7a7537b8a979946aa7f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
-rw-r--r-- | plugins/qmlprofiler/localqmlprofilerrunner.cpp | 5 | ||||
-rw-r--r-- | plugins/qmlprofiler/localqmlprofilerrunner.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/qmlprofiler/localqmlprofilerrunner.cpp b/plugins/qmlprofiler/localqmlprofilerrunner.cpp index d6b3dccf97..529514c390 100644 --- a/plugins/qmlprofiler/localqmlprofilerrunner.cpp +++ b/plugins/qmlprofiler/localqmlprofilerrunner.cpp @@ -41,6 +41,11 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio this, SIGNAL(appendMessage(QString,Utils::OutputFormat))); } +LocalQmlProfilerRunner::~LocalQmlProfilerRunner() +{ + disconnect(&m_launcher, SIGNAL(processExited(int)), this, SLOT(spontaneousStop(int))); +} + void LocalQmlProfilerRunner::start() { QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port); diff --git a/plugins/qmlprofiler/localqmlprofilerrunner.h b/plugins/qmlprofiler/localqmlprofilerrunner.h index 042df14625..26a9b45161 100644 --- a/plugins/qmlprofiler/localqmlprofilerrunner.h +++ b/plugins/qmlprofiler/localqmlprofilerrunner.h @@ -52,6 +52,7 @@ public: }; explicit LocalQmlProfilerRunner(const Configuration &configuration, QObject *parent = 0); + ~LocalQmlProfilerRunner(); // AbstractQmlProfilerRunner virtual void start(); |