Commit f9b9cffa authored by J.Dudouet [IPNL/CSNSM]'s avatar J.Dudouet [IPNL/CSNSM]
Browse files

correct memory leak


git-svn-id: svn+ssh://anonsvn.in2p3.fr/agata/gammaware/trunk@2270 c3abf467-7ff2-0310-b516-c5fb849bdde0
parent 50f66326
......@@ -507,6 +507,17 @@ void ADHitTree::CleverAddback()
AddE[i] = ETot;
}
for(int i=0 ; i<nbAdd ; i++)
{
vector<EHit*> Pack = ListOfPacks[i];
for(uint j=0 ; j<Pack.size() ; j++)
{
EHit *a_hit = Pack[j];
delete a_hit;
}
}
}
Double_t ADHitTree::DoDopplerCorrection(const TrackedHit *hit, VertexInterface *vertex)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment