Fixed a memory leak in the file dialog.

3 files changed