msxml3: Fix a leak of error message BSTR.

This commit is contained in:
Nikolay Sivov 2010-10-27 01:15:38 +04:00 committed by Alexandre Julliard
parent ecfc3f153c
commit bd7787c12a
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,7 @@ static void format_error_message_from_id(saxlocator *This, HRESULT hr)
BSTR bstrMsg = SysAllocString(msg);
IVBSAXErrorHandler_fatalError(This->saxreader->vberrorHandler,
(IVBSAXLocator*)&This->lpVBSAXLocatorVtbl, &bstrMsg, hr);
SysFreeString(bstrMsg);
}
else
ISAXErrorHandler_fatalError(This->saxreader->errorHandler,
@ -1319,6 +1320,7 @@ static void libxmlFatalError(void *ctx, const char *msg, ...)
BSTR bstrError = SysAllocString(wszError);
IVBSAXErrorHandler_fatalError(This->saxreader->vberrorHandler,
(IVBSAXLocator*)&This->lpVBSAXLocatorVtbl, &bstrError, E_FAIL);
SysFreeString(bstrError);
}
else
ISAXErrorHandler_fatalError(This->saxreader->errorHandler,