opcservices: Fix underlying uri object leak (Valgrind).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2018-09-13 09:21:17 +03:00 committed by Alexandre Julliard
parent 397517bee2
commit 2f2a5a2ea1
1 changed files with 3 additions and 1 deletions

View File

@ -331,7 +331,9 @@ static HRESULT WINAPI opc_factory_CreatePartUri(IOpcFactory *iface, LPCWSTR uri,
return hr;
}
return opc_part_uri_create(part_uri, NULL, out);
hr = opc_part_uri_create(part_uri, NULL, out);
IUri_Release(part_uri);
return hr;
}
static HRESULT WINAPI opc_factory_CreateStreamOnFile(IOpcFactory *iface, LPCWSTR filename,