Dear ROOTers
I have the following code:
for (Int_t k=0; k<n; k++) {
XTreeInfo *info = 0;
info = (XTreeInfo*)tree[k]->GetUserInfo()->FindObject(name);
fAlgorithm->InitTreeInfo(info);
//?? SafeDelete(info);
}
My question is:
Do I need to SafeDelete(info) or is this not allowed?
When I have the same code in different methods, which I call sequentially, do I need to SafeDelete(info) in every method?
Best regards
Christian