Coverity fixes

CID 174671
CID 174670
CID 174669
CID 174668
CID 174667
CID 174664
This commit is contained in:
wandererfan
2018-04-02 12:42:29 -04:00
committed by wmayer
parent 99b960c408
commit 91a0aff25f
6 changed files with 18 additions and 11 deletions

View File

@@ -194,6 +194,7 @@ void ViewProviderGeomHatch::getParameters(void)
std::string lgName = hGrp->GetASCII("LineGroup","FC 0.70mm");
auto lg = TechDraw::LineGroup::lineGroupFactory(lgName);
double weight = lg->getWeight("Graphic");
delete lg; //Coverity CID 174667
WeightPattern.setValue(weight);
}