/* Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases.  */
void xmlCleanupCharEncodingHandlers(void)
/* Cleanup the memory allocated for the char encoding support, it unregisters all the encoding handlers and the aliases.  */
void xmlCleanupCharEncodingHandlers(void)
{
        nbCharEncodingHandler--;
	if (handlers[nbCharEncodingHandler] != NULL) {
	    if (handlers[nbCharEncodingHandler]->name != NULL)
		xmlFree(handlers[nbCharEncodingHandler]->name);
	    xmlFree(handlers[nbCharEncodingHandler]);
	}
    }
    xmlFree(handlers);
    handlers = NULL;
    nbCharEncodingHandler = 0;
    xmlDefaultCharEncodingHandler = NULL;
}