From 61037c622b13122de578f5ef60a3b343af3f9633 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 15 Sep 2017 11:13:23 +0100 Subject: ofz: leak of prefixes in skipped elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8e83eb605bdf5991988e147cf8478e44c858a2b0 Reviewed-on: https://gerrit.libreoffice.org/42320 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- xmlscript/source/xml_helper/xml_impctx.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xmlscript') diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 5c461c29a64f..0d70c782bfaa 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -545,6 +545,11 @@ void DocumentHandlerImpl::startElement( else { ++m_nSkipElements; + + // pop prefixes + for (sal_Int32 nPos = elementEntry->m_prefixes.size(); nPos--;) + popPrefix(elementEntry->m_prefixes[nPos]); + SAL_INFO("xmlscript.xmlhelper", " no context given on createChildElement() => ignoring element \"" << rQElementName << "\" ..."); } } -- cgit