Module: wine Branch: master Commit: 09db52884734bb98dca8a7d69f80de8a2cb3e975 URL: http://source.winehq.org/git/wine.git/?a=commit;h=09db52884734bb98dca8a7d69f...
Author: Huw Davies huw@codeweavers.com Date: Wed Dec 9 14:06:03 2009 +0000
ole32: Release the error info strings.
Found by Valgrind.
---
dlls/ole32/errorinfo.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/errorinfo.c b/dlls/ole32/errorinfo.c index f69635b..39751ab 100644 --- a/dlls/ole32/errorinfo.c +++ b/dlls/ole32/errorinfo.c @@ -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; }