[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 22:39:07 CDT 2008
---
dlls/msxml3/cdata.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/dlls/msxml3/cdata.c b/dlls/msxml3/cdata.c
index 1d646e2..06d8bb1 100644
--- a/dlls/msxml3/cdata.c
+++ b/dlls/msxml3/cdata.c
@@ -601,10 +601,7 @@ static HRESULT WINAPI domcdata_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
--------------010209050803050601020809--
More information about the wine-patches
mailing list