XForms: How do I return memory when I'm done with a form?

Christopher Sean Hilton (chris@vindaloo.com)
Wed, 11 Feb 1998 00:07:39 -0500 (EST)

# To subscribers of the xforms list from Christopher Sean Hilton <chris@vindaloo.com> :

One more question:

I know that I call fl_free_form() to restore the storage that a form was
using to the heap but is the following sequence okay for forms created
with fdesign?

FD_foobarbaz * fd_foobarbaz = create_form_foobarbaz();

/* forms interaction here */

fl_hide_form(fd_foobarbaz->foobarbaz);
fl_free_form(fd_foobarbaz->foobarbaz);

free(fd_foobarbaz);

or is there something more efficient?

Chris

--
      __o          "All I was trying to do was get home from work."
    _`\<,_           -Rosa Parks
___(*)/_(*)____.___o____..___..o...________ooO..._____________________
Christopher Sean Hilton                    [chris/at/vindaloo/dot/com]

_________________________________________________ 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/