examples/libxml.c
void destroy_context(context *c)
{
	if (c == NULL)
		return;

	if (c->parser != NULL)
		hubbub_parser_destroy(c->parser);

	xmlFreeDoc(c->document);

	c->parser = NULL;
	c->encoding = NULL;
	c->document = NULL;

	free(c);

	return;
}
/**
 * Destroy a parsing context
 *
 * \param c  Context to destroy
 */
Destroy a parsing context
\param c  Context to destroy
Destroy a parsing context \ param c Context to destroy
void destroy_context(context *c)
{
	if (c == NULL)
		return;
	if (c->parser != NULL)
		hubbub_parser_destroy(c->parser);
	xmlFreeDoc(c->document);
	c->parser = NULL;
	c->encoding = NULL;
	c->document = NULL;
	free(c);
	return;
}
void destroy_context ( context * c ) { if ( c == NULL ) return ; if ( c -> parser != NULL ) hubbub_parser_destroy ( c -> parser ) ; xmlFreeDoc ( c -> document ) ; c -> parser = NULL ; c -> encoding = NULL ; c -> document = NULL ; free ( c ) ; return ; }
Destroy a parsing context
 \param c  Context to destroy
Destroy a parsing context \ param c Context to destroy