diff options
-rw-r--r-- | entities.c | 12 | ||||
-rw-r--r-- | entities.h | 1 | ||||
-rw-r--r-- | include/libxml/entities.h | 1 |
3 files changed, 14 insertions, 0 deletions
@@ -149,6 +149,18 @@ void xmlInitializePredefinedEntities(void) { } /** + * xmlCleanupPredefinedEntities: + * + * Cleanup up the predefined entities table. + */ +void xmlCleanupPredefinedEntities(void) { + if (xmlPredefinedEntities == NULL) return; + + xmlFreeEntitiesTable(xmlPredefinedEntities); + xmlPredefinedEntities = NULL; +} + +/** * xmlGetPredefinedEntity: * @name: the entity name * @@ -88,6 +88,7 @@ void xmlFreeEntitiesTable (xmlEntitiesTablePtr table); void xmlDumpEntitiesTable (xmlBufferPtr buf, xmlEntitiesTablePtr table); xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table); +void xmlCleanupPredefinedEntities(void); #ifdef __cplusplus } diff --git a/include/libxml/entities.h b/include/libxml/entities.h index 67180b1b..858662ff 100644 --- a/include/libxml/entities.h +++ b/include/libxml/entities.h @@ -88,6 +88,7 @@ void xmlFreeEntitiesTable (xmlEntitiesTablePtr table); void xmlDumpEntitiesTable (xmlBufferPtr buf, xmlEntitiesTablePtr table); xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table); +void xmlCleanupPredefinedEntities(void); #ifdef __cplusplus } |