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

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

(cherry picked from commit 8e6c83182677ec234c5f44c5dfcb40e421a21bcb)