Previous: Adding and Removing Objects, Up: Part I Defining Forms [Contents][Index]
If the application program does not need an object anymore it can completely delete it, freeing all memory used for it, using a call of
void fl_free_object(FL_OBJECT *obj);
After this the object is truely destroyed and can no longer be used.
If you hadn’t removed the object from the form it did belong to using
fl_delete_object()
before this will be done
automatically.
To free the memory used by an entire form use a call of
void fl_free_form(FL_FORM *form);
This will delete and free all the objects of the form and the form itself. A freed form can not be referenced anymore.