## 5.11 Destroy a Widget

To destroy a widget, use

    void EZ_DestroyWidget(EZ_Widget *widget);

This function destroys a widget. All data allocated for widget is freed after this function returns. During the destruction process, it calls all the destroy callbacks registered to widget.

A destroyed widget should never be referenced again.

HTML Documentation Maintainance:`Arturo Espinosa <arturo@nuclecu.unam.mx>`