From 0b24bd6dde07fab4febdfc177a3175f1113de4fd Mon Sep 17 00:00:00 2001 From: Srivats P Date: Mon, 9 May 2016 18:37:42 +0530 Subject: [PATCH] Save/Open Session: Fix crash while deleting atConnectConfig_ --- client/portgroup.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/portgroup.cpp b/client/portgroup.cpp index 2ab76da..79904c0 100644 --- a/client/portgroup.cpp +++ b/client/portgroup.cpp @@ -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()