"OKUMURA, Akira" <oxon_at_icrr.u-tokyo.ac.jp> writes:
> If I make a class which has histogram as a member as below, at the
> line of declaration of 'MyClass b' ROOT warns 'Potential memory leak'.
If you don't want ROOT to track your histograms (which is what is behind this "Potential memory leak" message) then call
hist->SetDirectory(0);
after you create it.
-Brett. Received on Thu Jun 15 2006 - 16:24:13 MEST
This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:59 MET