I must be doing things differently than everyone else but every class that I
create that contains a window does not release that window's memory.
My fluid code looks something like this:
class FL_EXPORT TDset_Dialog {} {
Function {TDset_Dialog()} {} {
Fl_Window TDsetWindow {
private xywh {390 417 500 190} type Double box ...
} {
..
}
Function {~TDset_Dialog()} {} {
code {;} {}
}
}
When this class is created and deleted it has a leak.
If I add:
TDsetWindow->clear(); delete TDsetWindow;
to ~TDset_Dialog(), the leak is fixed.
I assumed that when the class is deleted, it would cleanup the window and
everything else, but it is not.
I want to find out if I am doing something wrong or my assumption is incorrect
or I have to use Fl_Group first or ?
Martin
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk