[PATCH] Dont free the Content buffer on error since xmlTextConcat takes ownership of it
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Wed Mar 26 18:32:10 CDT 2008
---
dlls/msxml3/comment.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/msxml3/comment.c b/dlls/msxml3/comment.c
index 3229465..c4d37f2 100644
--- a/dlls/msxml3/comment.c
+++ b/dlls/msxml3/comment.c
@@ -600,10 +600,7 @@ static HRESULT WINAPI domcomment_appendData(
if(xmlTextConcat(pDOMNode->node, pContent, SysStringLen(p) ) == 0)
hr = S_OK;
else
- {
hr = E_FAIL;
- xmlFree(pContent);
- }
}
else
hr = E_FAIL;
--
1.5.4.1
--------------030209040806000805000607--
More information about the wine-patches
mailing list