Commit 09db5288 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

ole32: Release the error info strings.

Found by Valgrind.
parent 41af26b2
...@@ -237,6 +237,10 @@ static ULONG WINAPI IErrorInfoImpl_Release( ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment