# DLGUNINIT (W*S)

Dialog Subroutine: Deallocates memory associated with an initialized dialog.

## Module

USE IFLOGM

CALL DLGUNINIT (dlg)

dlg | (Input) Derived type `dialog`. Contains dialog box parameters. The components of the type `dialog` are defined with the PRIVATE attribute, and cannot be changed or individually accessed by the user.

You should call DLGUNINIT when a dialog that was successfully initialized by DLGINIT is no longer needed. DLGUNINIT should only be called on a dialog initialized with DLGINIT. If it is called on an uninitialized dialog or one that has already been deallocated with DLGUNINIT, the result is undefined.

## Example

    USE IFLOGM
    INCLUDE "MYDLG.FD"
    TYPE (DIALOG)  mydialog
    LOGICAL        retlog
    ...
    retlog = DLGINIT(IDD_mydlg, mydialog)
    ...
    CALL DLGUNINIT (mydialog)
    END

Parent topic: Dialog Library Routines

## See Also

DLGINIT
DLGMODAL
DLGMODELESS
DLGEXIT