QmlProfiler: fix potential crash

Change-Id: I4d8c2ae3e14905fb997fc7a7537b8a979946aa7f
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Christiaan Janssen
2013-06-21 16:36:24 +02:00
committed by Kai Koehne
parent a7f03f3b5b
commit f86e2a4f72
2 changed files with 6 additions and 0 deletions

View File

@@ -41,6 +41,11 @@ LocalQmlProfilerRunner::LocalQmlProfilerRunner(const Configuration &configuratio
this, SIGNAL(appendMessage(QString,Utils::OutputFormat))); this, SIGNAL(appendMessage(QString,Utils::OutputFormat)));
} }
LocalQmlProfilerRunner::~LocalQmlProfilerRunner()
{
disconnect(&m_launcher, SIGNAL(processExited(int)), this, SLOT(spontaneousStop(int)));
}
void LocalQmlProfilerRunner::start() void LocalQmlProfilerRunner::start()
{ {
QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port); QString arguments = QString::fromLatin1("-qmljsdebugger=port:%1,block").arg(m_configuration.port);

View File

@@ -52,6 +52,7 @@ public:
}; };
explicit LocalQmlProfilerRunner(const Configuration &configuration, QObject *parent = 0); explicit LocalQmlProfilerRunner(const Configuration &configuration, QObject *parent = 0);
~LocalQmlProfilerRunner();
// AbstractQmlProfilerRunner // AbstractQmlProfilerRunner
virtual void start(); virtual void start();