Hi Daniel,
TPad::DrawFrame creates a temporary TH1F object and returns a pointer to it.
Unfortunately, TPad::Clear does not delete this object.
I have modified TPad::DrawFrame such that TPad::Clear will automatically
delete the temporary histogram.
Rene Brun
Daniel Barna wrote:
>
> Hi Rooters,
> The following macro produces a steady increase of consumed memory on
> a linux machine:
>
> {
> TCanvas *c = new TCanvas;
> while(1)
> {
> gPad->DrawFrame(0,0,1,1);
> gPad->Clear();
> }
> }
>
> Does it have to do with the memory leak in Xfree86, is it a memory leak in
> root, or did I miss something?
> Thanks
> Daniel
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET