Hello Ivan
On 12-Jan-98 Ivan Powis wrote:
> To subscribers of the xforms list from Ivan Powis
> <pczip@chemistry.nottingham.ac.uk> :
>
> I have encountered a memory leak when using statically initialised
> menus (ie when using fl_set_menu_entries() and an array of FL_PUP_ENTRY
> structures) which I think is an internal library bug. I have an app
> which creates many temporary forms using such code. Each form is
> subsequently killed off with a sequence
> fl_hide_form(ob->form);
> fl_free_form(ob->form);
> free(ob->form->fdui);
I think your sequence is wrong : fl_free_form(ob->form) frees the complete form
structure. After this you cannot use ob->form->fdui. Think you should permut
the 2 last lines of your sequence :
fl_hide_form(ob->form);
free(ob->form->fdui);
fl_free_form(ob->form);
Hope this will help you
---stephane.barraud@pep-esp.fr
Pole Europeen de Plasturgie 2 rue Pierre et Marie Curie 01100 BELLIGNAT FRANCE _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuf2.usuhs.mil or see http://bob.usuf2.usuhs.mil/mailserv/xforms.html Xforms Home Page: http://bloch.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/