fixed: potential memory leak for lfunc

This commit is contained in:
Arne Morten Kvarving
2021-09-30 09:32:24 +02:00
parent 4259c6b89a
commit 030b638180

View File

@@ -317,7 +317,10 @@ bool SIM2D::parseGeometryTag (const TiXmlElement* elem)
}
if (!pch->setGeometry(lfunc,power,threshold))
{
delete lfunc;
return false;
}
if (type == "file")
myAddScalars[val] = lfunc;