[PATCH 4/6] Don't lose pointer to externaly allocated xmlSAXHandler copy

Nikolay Sivov bunglehead at gmail.com
Sun Jan 10 09:24:41 CST 2010


xmlCreatePushParserCtxt(xmlSAXHandlerPtr sax, ...) allocates
a copy to store first 'sax' pointed data.
---
 dlls/msxml3/saxreader.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/msxml3/saxreader.c b/dlls/msxml3/saxreader.c
index 6cf95d1..a69b0e6 100644
--- a/dlls/msxml3/saxreader.c
+++ b/dlls/msxml3/saxreader.c
@@ -1853,7 +1853,6 @@ static HRESULT internal_parseStream(saxreader *This, IStream *stream, BOOL vbInt
     }
     This->isParsing = FALSE;
 
-    locator->pParserCtxt->sax = NULL;
     xmlFreeParserCtxt(locator->pParserCtxt);
     locator->pParserCtxt = NULL;
     ISAXLocator_Release((ISAXLocator*)&locator->lpSAXLocatorVtbl);
-- 
1.5.6.5


--=-U5TsYQid7IlOmMVBIkZn--




More information about the wine-patches mailing list