Where are histograms listed?


I have a class which creates a clone of a histogram passed to its constructor as a pointer. In the class destructor I delete this clone, but this seems to cause a bus error when I quit ROOT. I have had a similar thing happen with a TF1 and the solution was to remove the TF1 from the list of functions. Is there a “list of histograms” from which I need to remove the cloned histogram? Should I be deleting this histogram at all?


see chapter about Object Ownership at ftp://root.cern.ch/root/doc/8ObjectOwnership.pdf