Silence incorrect LGTM warning.
This commit is contained in:
@@ -541,7 +541,7 @@ void PropertyMeshKernel::setPointIndices(const std::vector<std::pair<unsigned lo
|
||||
PyObject *PropertyMeshKernel::getPyObject(void)
|
||||
{
|
||||
if (!meshPyObject) {
|
||||
meshPyObject = new MeshPy(&*_meshObject);
|
||||
meshPyObject = new MeshPy(&*_meshObject); // Lgtm[cpp/resource-not-released-in-destructor] ** Not destroyed in this class because it is reference-counted and destroyed elsewhere
|
||||
meshPyObject->setConst(); // set immutable
|
||||
meshPyObject->parentProperty = this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user