Skip to content
Snippets Groups Projects
Commit b908fb83 authored by Andrei Gheata's avatar Andrei Gheata
Browse files

coverity fixes

git-svn-id: http://root.cern.ch/svn/root/trunk@44634 27541ba8-7e3a-0410-8455-c3a389f83636
parent c01c8f81
No related branches found
No related tags found
No related merge requests found
......@@ -3632,6 +3632,7 @@ void TGeoManager::UpdateElements()
for (i=0; i<nelem; i++) {
elem = mix->GetElement(i);
elem_table = fElementTable->GetElement(elem->Z());
if (!elem || !elem_table) continue;
if (elem != elem_table) {
elem_table->SetDefined(elem->IsDefined());
elem_table->SetUsed(elem->IsUsed());
......
......@@ -177,11 +177,13 @@ void TGeoPhysicalNode::Align(TGeoMatrix *newmat, TGeoShape *newshape, Bool_t che
// Clone daughter volume and node
vd = node->GetVolume()->CloneVolume();
if (!vd) {
delete [] id;
Fatal("Align", "Cannot clone volume %s", node->GetVolume()->GetName());
return;
}
nnode = node->MakeCopyNode();
if (!nnode) {
delete [] id;
Fatal("Align", "Cannot make copy node for %s", node->GetName());
return;
}
......
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