DisposeDialog
from the screen, and release memory occupied by most types of items. It then
frees up memory occupied by the DialogRecord and the item list. identifies the dialog to destroy.
Notes: As with CloseDialog, the window is removed from the screen and appropriate update events are generated for other windows (see
CloseWindow). Storage is released for the dialog's window regions, item handles; such as control records and text handles. Handles leading to icons
and pictures are NOT released.
storage used to hold the item list.
discard dialogs whose storage you allocated yourself (i.e., dStorage was an
address when the dialog was created).