urlmon: Release previously set URI in BindProtocol::StartEx.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2017-06-06 17:15:32 +02:00 committed by Alexandre Julliard
parent 09b78c21e5
commit cded0779e4
1 changed files with 5 additions and 0 deletions

View File

@ -492,6 +492,11 @@ static HRESULT WINAPI BindProtocol_StartEx(IInternetProtocolEx *iface, IUri *pUr
This->pi = grfPI;
if(This->uri) {
if(This->display_uri)
SysFreeString(This->display_uri);
IUri_Release(This->uri);
}
IUri_AddRef(pUri);
This->uri = pUri;