[ROOT] Who owns class passed to TG GUI classes?

From: Brett Viren (bv@bnl.gov)
Date: Tue Mar 27 2001 - 16:46:16 MEST


Hi,

I am trying to understand how to use the TG GUI classes.  In
guitest.cxx there is a line:

fCanvasWindow->AddFrame(new TGFrame(fCanvasWindow->GetContainer(),
			32, 32, 0, (i+1)&255),
			new TGLayoutHints(kLHintsExpandY | kLHintsRight));

As far as I can see, these TGFrame and TGLayoutHints are never
deleted, is this correct?  In other words, is it up to the user to
memory manage objects given to TG GUI classes, or are there cases
where this management is done by the TG GUI classes?

Thanks,
-Brett.



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET