winex11: Free "path" and "uri" with the correct functions.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2022-04-26 16:06:00 +01:00 committed by Alexandre Julliard
parent 90800f46f0
commit c46630cd4b
1 changed files with 2 additions and 2 deletions

View File

@ -922,7 +922,7 @@ static HANDLE import_text_uri_list( Atom type, const void *data, size_t size )
lstrcpynA(uri, &uriList[start], end - start + 1);
path = uri_to_dos(uri);
TRACE("converted URI %s to DOS path %s\n", debugstr_a(uri), debugstr_w(path));
HeapFree( GetProcessHeap(), 0, uri );
free( uri );
if (path)
{
@ -939,7 +939,7 @@ static HANDLE import_text_uri_list( Atom type, const void *data, size_t size )
memcpy(&out[total], path, pathSize * sizeof(WCHAR));
total += pathSize;
done:
free( path );
HeapFree( GetProcessHeap(), 0, path );
if (out == NULL)
break;
}