Ends the IUP toolkit and releases internal memory. It will also automatically destroy all dialogs and all elements that have names.
void IupClose(void); [in C] iup.Close() [in Lua]
In Windows, the CoUninitialize function is called.
In Motif, the XtDestroyApplicationContext function is called.
This function is usually called by the application to match the call to IupOpen.
When the Lua binding is used, and IUP is dynamically loaded then you should call iup.Close from Lua. If IUP is statically loaded and iuplua_open was called, then you should call iuplua_close.
iuplua_close will destroy all dialogs and all elements that have names that where created with the same Lua context before IupClose is actually called (since 3.31).