dialog: fixed typo/copy&paste oversight to dlg pointer name in clean routine

- credits to Alex Balshov for report, troubleshooting and spotting the
  fix