diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-11-26 23:17:25 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-11-27 09:34:32 +0100 |
commit | 2fed793e19e355ead5a1d6703835c86fb5ac02c0 (patch) | |
tree | 29a444b2c14b4987eb61a0ba0395d6a9c121d101 /xmlsecurity | |
parent | 4bd0739b5b2110b428180c270f5f5f8722ff0b0b (diff) |
xmlsecurity: remove some dead code that is guaranteed to crash
Fortunately currently XMLSEC_NO_XSLT is defined anyway, but better
remove it.
Change-Id: I1dd2aa57356274dacc99cc7def2d308884263289
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/saxhelper.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmlsecurity/source/xmlsec/saxhelper.cxx b/xmlsecurity/source/xmlsec/saxhelper.cxx index 589e89028bd8..0339067cf583 100644 --- a/xmlsecurity/source/xmlsec/saxhelper.cxx +++ b/xmlsecurity/source/xmlsec/saxhelper.cxx @@ -125,12 +125,10 @@ SAXHelper::SAXHelper( ) if( m_pParserCtxt == nullptr ) { -#ifndef XMLSEC_NO_XSLT - xsltCleanupGlobals() ; -#endif // see issue i74334, we cannot call xmlCleanupParser when libxml is still used // in other parts of the office. // xmlCleanupParser() ; +// and neither can we call xsltCleanupGlobals() throw cssu::RuntimeException() ; } else @@ -146,12 +144,10 @@ SAXHelper::SAXHelper( ) { xmlFreeParserCtxt( m_pParserCtxt ) ; -#ifndef XMLSEC_NO_XSLT - xsltCleanupGlobals() ; -#endif // see issue i74334, we cannot call xmlCleanupParser when libxml is still used // in other parts of the office. // xmlCleanupParser() ; +// and neither can we call xsltCleanupGlobals() m_pParserCtxt = nullptr ; throw cssu::RuntimeException() ; } |