shell32/tests: Remove redundant NULL checks before CoTaskMemFree().

Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2016-07-08 10:10:33 +02:00 committed by Alexandre Julliard
parent b5a7853b86
commit afe0ba175c
1 changed files with 4 additions and 10 deletions

View File

@ -248,10 +248,8 @@ static void test_click_make_new_folder_button(void)
shfileop.fFlags = FOF_NOCONFIRMATION|FOF_NOERRORUI|FOF_SILENT;
SHFileOperationA(&shfileop);
if (pidl)
CoTaskMemFree(pidl);
if (test_folder_pidl)
CoTaskMemFree(test_folder_pidl);
CoTaskMemFree(pidl);
CoTaskMemFree(test_folder_pidl);
test_folder_object->lpVtbl->Release(test_folder_object);
CoUninitialize();
@ -346,16 +344,12 @@ static void test_selection(void)
/* test without flags */
bi.ulFlags = 0;
pidl = SHBrowseForFolderA(&bi);
if (pidl)
CoTaskMemFree(pidl);
CoTaskMemFree(pidl);
/* test with flag */
bi.ulFlags = BIF_NEWDIALOGSTYLE;
pidl = SHBrowseForFolderA(&bi);
if (pidl)
CoTaskMemFree(pidl);
CoTaskMemFree(pidl);
IShellFolder_Release(desktop_object);