Hi Rooters,
from an earlier mail of somebody I found, that:
------
TCanvas *c1 = new TCanvas("Name", "Title");
TGraph *gr = new TGraph(...);
gr->SetBit(kCanDelete);
gr->Draw();
delete c1;
------
doesn't leak memory, because the histogram is deleted together with the
Canvas. What's about the following example:
------
TCanvas *c1 = new TCanvas("Name", "Title");
TGraph *gr1 = new TGraph(...);
gr1->SetBit(kCanDelete);
gr1->Draw();
TGraph *gr2 = new TGraph(...);
gr2->SetBit(kCanDelete);
gr2->Draw();
delete c1;
------
Thanks for your help,
Thomas.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:49 MET