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
1 changed files with 4 additions and 0 deletions

View File

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