winex11.drv: Free uriList (Coverity).

This commit is contained in:
Marcus Meissner 2015-02-16 08:34:08 +01:00 committed by Alexandre Julliard
parent c4bf8a85ee
commit ab854893aa
1 changed files with 4 additions and 1 deletions

View File

@ -1590,8 +1590,10 @@ static HANDLE X11DRV_CLIPBOARD_ImportTextUriList(Display *display, Window w, Ato
return 0;
out = HeapAlloc(GetProcessHeap(), 0, capacity * sizeof(WCHAR));
if (out == NULL)
if (out == NULL) {
HeapFree(GetProcessHeap(), 0, uriList);
return 0;
}
while (end < len)
{
@ -1650,6 +1652,7 @@ static HANDLE X11DRV_CLIPBOARD_ImportTextUriList(Display *display, Window w, Ato
}
}
HeapFree(GetProcessHeap(), 0, out);
HeapFree(GetProcessHeap(), 0, uriList);
return handle;
}