FLTK logo

Re: [fltk.general] Re: Is FLTK performing automatic memory de-allocation of dynamically created objects?

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: Is FLTK performing automatic memory de-allocation of dynamically created objects? imm Sep 26, 2022  
 
On Mon, 26 Sept 2022 at 13:38, Pierre Rouleau wrote:
>
> How does FLTK class that has a straight member pointer to a widget know to delete that widget at destruction time?  Does FLTK override the operator new?
>

No, it's more that the constructor for the fltk widgets adds them to
the active container widget. So when you create a widget it is always
added to the current container.
Thus any container widget, when it is discarded, has a list of its
current children.

-- 
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/CAGFM6daaws5TZrs1ecj%3D7FrJ96%3DmwW7NaHkUV96GGGqzS-HaPA%40mail.gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.