(file_mask_dialog): NULLify variables before use in next iteration.