Alistair Leslie-Hughes : msxml3: Fix memory leak.
Alexandre Julliard
julliard at winehq.org
Wed Nov 7 06:46:00 CST 2007
Module: wine
Branch: master
Commit: 2ad4f102f7b72046233c4de28c49dd1504af7890
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2ad4f102f7b72046233c4de28c49dd1504af7890
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Wed Nov 7 12:39:11 2007 +1100
msxml3: Fix memory leak.
---
dlls/msxml3/xmlelem.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/msxml3/xmlelem.c b/dlls/msxml3/xmlelem.c
index 787b13f..5af43a7 100644
--- a/dlls/msxml3/xmlelem.c
+++ b/dlls/msxml3/xmlelem.c
@@ -340,6 +340,8 @@ static HRESULT WINAPI xmlelem_get_text(IXMLElement *iface, BSTR *p)
content = xmlNodeGetContent(This->node);
*p = bstr_from_xmlChar(content);
TRACE("returning %s\n", debugstr_w(*p));
+
+ xmlFree(content);
return S_OK;
}
More information about the wine-cvs
mailing list