msxml3: Fix uri object leak on error path (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3658802814
commit
5825ad56f6
|
@ -2292,8 +2292,8 @@ static HRESULT WINAPI domdoc_load(
|
|||
|
||||
if ( filename )
|
||||
{
|
||||
IUri *uri = NULL;
|
||||
IMoniker *mon;
|
||||
IUri *uri;
|
||||
|
||||
if (This->properties->uri)
|
||||
{
|
||||
|
@ -2310,15 +2310,19 @@ static HRESULT WINAPI domdoc_load(
|
|||
IMoniker_Release(mon);
|
||||
}
|
||||
|
||||
if ( FAILED(hr) )
|
||||
This->error = E_FAIL;
|
||||
else
|
||||
if (SUCCEEDED(hr))
|
||||
{
|
||||
get_doc(This)->name = (char *)xmlchar_from_wcharn(filename, -1, TRUE);
|
||||
This->properties->uri = uri;
|
||||
hr = This->error = S_OK;
|
||||
*isSuccessful = VARIANT_TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (uri)
|
||||
IUri_Release(uri);
|
||||
This->error = E_FAIL;
|
||||
}
|
||||
}
|
||||
|
||||
if(!filename || FAILED(hr)) {
|
||||
|
|
Loading…
Reference in New Issue