Dear users of ROOT
I would like to know why in TH1::Build() delete hold is commented. If one have a function which crates histogram with new then there is no (easy) way to avoid memory leakage.
Best regards,
Margar Simonyan
if (hold) {
Warning("Build","Replacing existing histogram: %s (Potential
memory leak).",GetName());
gDirectory->GetList()->Remove(hold);
hold->SetDirectory(0);
// delete hold;
}
Received on Sun Jul 03 2005 - 17:37:07 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:10 MET