ole32: Release the error info strings.

Found by Valgrind.
This commit is contained in:
Huw Davies 2009-12-09 14:06:03 +00:00 committed by Alexandre Julliard
parent 41af26b2e7
commit 09db528847

View file

@ -237,6 +237,10 @@ static ULONG WINAPI IErrorInfoImpl_Release(
if (!ref)
{
TRACE("-- destroying IErrorInfo(%p)\n",This);
ERRORINFO_SysFreeString(This->bstrSource);
ERRORINFO_SysFreeString(This->bstrDescription);
ERRORINFO_SysFreeString(This->bstrHelpFile);
HeapFree(GetProcessHeap(),0,This);
return 0;
}