Fixed memory leak when cancelling file selection dialog.