msxml3: Fix a string leak in msxml6 mode (Valgrind).

This commit is contained in:
Nikolay Sivov 2014-05-04 20:33:51 +04:00 committed by Alexandre Julliard
parent c9c47459a9
commit c7f1262613
1 changed files with 3 additions and 1 deletions

View File

@ -1318,11 +1318,13 @@ static HRESULT WINAPI schema_cache_get(IXMLDOMSchemaCollection2* iface, BSTR uri
static HRESULT WINAPI schema_cache_remove(IXMLDOMSchemaCollection2* iface, BSTR uri)
{
schema_cache* This = impl_from_IXMLDOMSchemaCollection2(iface);
xmlChar* name = uri ? xmlchar_from_wchar(uri) : xmlchar_from_wchar(emptyW);
xmlChar* name;
TRACE("(%p)->(%s)\n", This, debugstr_w(uri));
if (This->version == MSXML6) return E_NOTIMPL;
name = uri ? xmlchar_from_wchar(uri) : xmlchar_from_wchar(emptyW);
cache_remove_entry(This, name);
heap_free(name);
return S_OK;