Commit b1ad2553 authored by Christian Kandeler's avatar Christian Kandeler Committed by Tobias Hunger

QbsProjectManager: Fix null pointer accesses.

Change-Id: Ie57ecc36a676a3744317170eed7c4265becefe1b
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 1610093c
......@@ -76,8 +76,10 @@ QbsBuildStep::QbsBuildStep(ProjectExplorer::BuildStepList *bsl, const QbsBuildSt
QbsBuildStep::~QbsBuildStep()
{
cancel();
m_job->deleteLater();
m_job = 0;
if (m_job) {
m_job->deleteLater();
m_job = 0;
}
delete m_parser;
}
......
......@@ -72,8 +72,10 @@ QbsCleanStep::QbsCleanStep(ProjectExplorer::BuildStepList *bsl, const QbsCleanSt
QbsCleanStep::~QbsCleanStep()
{
cancel();
m_job->deleteLater();
m_job = 0;
if (m_job) {
m_job->deleteLater();
m_job = 0;
}
}
bool QbsCleanStep::init()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment