A quick look in FormPreferences reveals that there are the following xform
FORMs, but only dialog_ is deleted in the destructor. I think that this is a
bug. Each should be deleted. Allan?
Jean-Marc, as there is no free() in this class, it means that the xforms
FORMS are to be detroyed only when LyX is exitted. The memory leak associated
with these pointers not being deleted will occur then.
Angus
FD_form_preferences * dialog_;
///
FD_form_bind * bind_;
///
FD_form_misc * misc_;
///
FD_form_screen_fonts * screen_fonts_;
///
FD_form_interface_fonts * interface_fonts_;
///
FD_form_printer * printer_;
///
FD_form_paths * paths_;
On Fri, 22 Sep 2000, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
>
> Angus> I think that this is an example of evolving code! Some of the
> Angus> xforms FORMs are explicitly freed when the dialog is hidden.
> Angus> Most are not and the xforms FORM is destroyed only when the
> Angus> dialog is deleted itself.
>
> And so the the conclusion is? Is it a bug, or is it how it is supposed
> to be?
>
> JMarc