Commit 5825ad56 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Fix uri object leak on error path (Valgrind).

parent 36588028
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment