comdlg32: Free tmp_files after it's used (coverity).

This commit is contained in:
André Hentschel 2012-10-25 21:29:16 +02:00 committed by Alexandre Julliard
parent a5a99047e4
commit b302e1f2a5
1 changed files with 1 additions and 0 deletions

View File

@ -417,6 +417,7 @@ static HRESULT on_default_action(FileDialogImpl *This)
{
UINT size_used;
file_count = COMDLG32_SplitFileNames(tmp_files, len, &files, &size_used);
CoTaskMemFree(tmp_files);
}
if(!file_count) return E_FAIL;