From 069edfe125f6734fe17baa0c6af49107affb8343 Mon Sep 17 00:00:00 2001 From: Olivier Bertrand Date: Wed, 25 Sep 2013 18:41:20 +0200 Subject: - Reset some variables when closing just in case the XML tre is re-used. modified: storage/connect/libdoc.cpp --- storage/connect/libdoc.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'storage/connect/libdoc.cpp') diff --git a/storage/connect/libdoc.cpp b/storage/connect/libdoc.cpp index 01a9f858fb0..31aa90da076 100644 --- a/storage/connect/libdoc.cpp +++ b/storage/connect/libdoc.cpp @@ -540,6 +540,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) if ((Xerr = xmlGetLastError())) xmlResetError(Xerr); + Nlist = NULL; } // endif Nlist if (Xop) { @@ -548,6 +549,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) if ((Xerr = xmlGetLastError())) xmlResetError(Xerr); + Xop = NULL; } // endif Xop if (NlXop) { @@ -556,6 +558,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) if ((Xerr = xmlGetLastError())) xmlResetError(Xerr); + NlXop = NULL; } // endif NlXop if (Ctxp) { @@ -564,6 +567,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp) if ((Xerr = xmlGetLastError())) xmlResetError(Xerr); + Ctxp = NULL; } // endif Ctxp // } // endif Count -- cgit v1.2.1