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
This commit is contained in:
Kinsey Moore
2013-10-03 18:00:15 +00:00
parent e3d69a5628
commit 3578bc30fd
4 changed files with 129 additions and 1 deletions

View File

@@ -55,6 +55,9 @@ int ast_xml_init(void)
int ast_xml_finish(void)
{
xmlCleanupParser();
#ifdef HAVE_LIBXSLT_CLEANUP
xsltCleanupGlobals();
#endif
return 0;
}