Commit 75b090e6 authored by Daniel Teske's avatar Daniel Teske Committed by Daniel Teske
Browse files

DeployConfiguration: fix memory leak



The ctor creates a m_stepList, which we need thus delete in fromMap.
Likely the m_stepList could simply be initialized with null in the
ctor.

Change-Id: I3fdb31b135b4b6ea528e0666117b63c2b39764cf
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent fe2dd584
......@@ -116,6 +116,7 @@ bool DeployConfiguration::fromMap(const QVariantMap &map)
return false;
QVariantMap data = map.value(QLatin1String(BUILD_STEP_LIST_PREFIX) + QLatin1String("0")).toMap();
if (!data.isEmpty()) {
delete m_stepList;
m_stepList = new BuildStepList(this, data);
if (m_stepList->isNull()) {
qWarning() << "Failed to restore deploy step list";
......
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