Re: What is the proper way of disposing of a form?

Dr. T.C. Zhao (zhao@bragg.phys.uwm.edu)
Fri, 3 Jan 1997 22:55:31 -0600

To subscribers of the xforms list from "Dr. T.C. Zhao" <zhao@bragg.phys.uwm.edu> :

From: Carnage <S566@aacci.aacc.cc.md.us>

> What would be the proper way of disposing of a form created by the
>create_form_xxxx() routines produced by FDesign? (i.e. fd_myform =
>create_form_myform() ... how do I dispose of fd_myform when I'm done with
>it?) Right now, I just do a "free()" on it. Is that correct?
No. You need to free the form that is in the fd_ structure first
fl_free_form(fd_myform->myform)
then free the the structure itself
fl_free(fd_myform)