diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-15 11:13:23 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-15 18:13:20 +0200 |
commit | 61037c622b13122de578f5ef60a3b343af3f9633 (patch) | |
tree | 482bca9c3ed31a09e706e0f0b7788228be691319 /xmlscript | |
parent | 9e06588a980a6d33cf147c0370a655ad1499bfbe (diff) |
ofz: leak of prefixes in skipped elements
Change-Id: I8e83eb605bdf5991988e147cf8478e44c858a2b0
Reviewed-on: https://gerrit.libreoffice.org/42320
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_impctx.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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 << "\" ..."); } } |