Save/Open Session: Fix crash while deleting atConnectConfig_
This commit is contained in:
parent
294d1c80a1
commit
0b24bd6dde
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user