[PATCH 3/6] Don't leak externaly allocated xmlSAXHandler while replacing it with custom one (Valgrind).

Nikolay Sivov bunglehead at gmail.com
Sun Jan 10 09:17:37 CST 2010


---
 dlls/msxml3/saxreader.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 90600eb..6cf95d1 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -1787,6 +1787,7 @@ static HRESULT internal_parseBuffer(saxreader *This, const char *buffer, int siz
         return E_FAIL;
     }
 
+    xmlFree(locator->pParserCtxt->sax);
     locator->pParserCtxt->sax = &locator->saxreader->sax;
     locator->pParserCtxt->userData = locator;
 
-- 
1.5.6.5


--=-HuDpt8LJo21MRFVOtc0R--




More information about the wine-patches mailing list