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:
parent
09b78c21e5
commit
cded0779e4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue