Save/Open Session: Fix crash while deleting atConnectConfig_

This commit is contained in:
Srivats P 2016-05-09 18:37:42 +05:30
parent 294d1c80a1
commit 0b24bd6dde

View File

@ -106,7 +106,7 @@ void PortGroup::setConfigAtConnect(const OstProto::PortGroupContent *config)
}
if (!atConnectConfig_)
atConnectConfig_ = config->New();
atConnectConfig_ = new OstProto::PortGroupContent;
atConnectConfig_->CopyFrom(*config);
}
@ -874,7 +874,6 @@ void PortGroup::processStreamIdList(int portIndex, PbRpcController *controller)
}
// delete newPortConfig
delete atConnectPortConfig_.at(portIndex);
atConnectPortConfig_[portIndex] = NULL;
// return to normal sequence re-starting from getStreamIdList()