shell32: Free the correct pointer in XDG_UserDirLookup.

out_ptr is a stack variable. *out_ptr is heap allocated and is what
was meant to be freed.
This commit is contained in:
Rob Shearman 2008-06-19 07:51:26 +01:00 committed by Alexandre Julliard
parent 52911fc66c
commit ff83800839
1 changed files with 1 additions and 1 deletions

View File

@ -963,7 +963,7 @@ xdg_user_dir_lookup_error:
if (FAILED(hr)) if (FAILED(hr))
{ {
for (i = 0; i < num_dirs; i++) HeapFree(GetProcessHeap(), 0, out[i]); for (i = 0; i < num_dirs; i++) HeapFree(GetProcessHeap(), 0, out[i]);
HeapFree(GetProcessHeap(), 0, out_ptr); HeapFree(GetProcessHeap(), 0, *out_ptr);
} }
return hr; return hr;
} }