Skip to content
Snippets Groups Projects
Commit 74f8ba0d authored by Bertram Kopf's avatar Bertram Kopf
Browse files

removed another momory leak related to the MnUserParameters

parent f4189bcf
No related branches found
No related tags found
No related merge requests found
...@@ -409,12 +409,12 @@ void AppBase::fixAllReleaseScaleParams(std::shared_ptr<AbsPawianParameters> upar ...@@ -409,12 +409,12 @@ void AppBase::fixAllReleaseScaleParams(std::shared_ptr<AbsPawianParameters> upar
bool AppBase::calcAndSendClientLh(NetworkClient& theClient, std::shared_ptr<AbsPawianParameters> startParams, ChannelID channelID){ bool AppBase::calcAndSendClientLh(NetworkClient& theClient, std::shared_ptr<AbsPawianParameters> startParams, ChannelID channelID){
std::shared_ptr<AbsPawianParameters> currentFitParams= std::shared_ptr<AbsPawianParameters>(startParams->Clone());
while(true){ while(true){
if(!theClient.WaitForParams()) return false; if(!theClient.WaitForParams()) return false;
const std::vector<double> currentParamVec=theClient.GetParams(); const std::vector<double> currentParamVec=theClient.GetParams();
std::shared_ptr<AbsPawianParameters> currentFitParams= std::shared_ptr<AbsPawianParameters>(startParams->Clone());
currentFitParams->SetAllValues(currentParamVec); currentFitParams->SetAllValues(currentParamVec);
LHData theLHData; LHData theLHData;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment