Do not re-declare variable in local scope!
Change-Id: I4f66081603ce86d78965ac12368bda66d86ff0c4
Reviewed-by: Aurindam Jana <aurindam.jana@digia.com>
m_process->start(QStringList() << arguments);
QVERIFY2(m_process->waitForSessionStart(), "Could not launch application, or did not get 'Waiting for connection'.");
- QQmlDebugConnection *m_connection = new QQmlDebugConnection();
+ m_connection = new QQmlDebugConnection();
m_client = new QQmlProfilerClient(m_connection);
const int port = m_process->debugPort();
qDebug() << "Application Output:" << m_process->output();
}
delete m_process;
- delete m_connection;
+ m_process = 0;
delete m_client;
+ m_client = 0;
+ delete m_connection;
+ m_connection = 0;
}
void tst_QQmlProfilerService::blockingConnectWithTraceEnabled()