summaryrefslogtreecommitdiff
path: root/main/xml.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2013-10-03 18:00:15 +0000
committerKinsey Moore <kmoore@digium.com>2013-10-03 18:00:15 +0000
commit3578bc30fd22cd5a904cefce56c471066b39cd9d (patch)
tree7221017da45fa0c1e4ef3569b43bdd3f61442b1c /main/xml.c
parente3d69a5628d249a7909690a14ec8c1d95401e578 (diff)
Detect and use xsltCleanupGlobals when available
This introduces usage of an additional libxslt cleanup function, xsltCleanupGlobals, when the configure script detects that it is available. Early versions of the library did not include this function. (closes issue ASTERISK-22570) Reported by: Corey Farrell Patches: xsltCleanupGlobals.patch uploaded by Corey Farrell (License 5909) ........ Merged revisions 400384 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@400385 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/xml.c')
-rw-r--r--main/xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/xml.c b/main/xml.c
index bd5850813..dee249711 100644
--- a/main/xml.c
+++ b/main/xml.c
@@ -55,6 +55,9 @@ int ast_xml_init(void)
int ast_xml_finish(void)
{
xmlCleanupParser();
+#ifdef HAVE_LIBXSLT_CLEANUP
+ xsltCleanupGlobals();
+#endif
return 0;
}