Huw Davies : winex11: Free "path" and "uri" with the correct functions.
Alexandre Julliard
julliard at winehq.org
Tue Apr 26 16:25:26 CDT 2022
Module: wine
Branch: master
Commit: c46630cd4bb49b5440521d7b277f831569e2afe8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=c46630cd4bb49b5440521d7b277f831569e2afe8
Author: Huw Davies <huw at codeweavers.com>
Date: Tue Apr 26 16:06:00 2022 +0100
winex11: Free "path" and "uri" with the correct functions.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/winex11.drv/clipboard.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/clipboard.c b/dlls/winex11.drv/clipboard.c
index ddcaddec66f..d677aad034b 100644
--- a/dlls/winex11.drv/clipboard.c
+++ b/dlls/winex11.drv/clipboard.c
@@ -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;
}
More information about the wine-cvs
mailing list