Fixed a resource leak of modal dialogs
Merge remote-tracking branch 'origin/dev-file-dialogs'