Community articleClosing a Form
Added by IBM contributorIBM on May 6, 2011
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Next, you must free the memory used by the form. This is the last operation in the main function of the program.

Free the memory by using UFLDestroy, which destroys the root node of the form and all of its children:

   /* Now that we are done with the form, we can free the memory by
      calling UFLDestroy. The parameter, 'theForm', is a pointer to
      the root node of the form. This causes the root node and all
      of its children (the complete form) to be deleted from memory. */

Parent topic: Developing an application in C
Previous topic: Writing a Form to Disk
Next topic: Testing your Application