コード例 #1
0
ファイル: handler_xslt.c プロジェクト: skinkie/webserver
/* Props_free is registered to free our properties
 * after the handler is removed by the webserver.
 * If you put any variables in your props that need
 * to be freed, here is the place. Be smart and check
 * for NULL :)
 */
static ret_t 
props_free (cherokee_handler_xslt_props_t *props)
{
	if (props->global)
		xsltFreeStylesheet(props->global);

	if (props->globalDoc)
		xmlFreeDoc(props->globalDoc);

//	xsltFreeSecurityPrefs(props->sec);
	xsltCleanupGlobals();
	xmlCleanupParser();

	cherokee_buffer_mrproper(&props->content_type);
	cherokee_buffer_mrproper(&props->stylesheet);
	return cherokee_module_props_free_base (MODULE_PROPS(props));
}
コード例 #2
0
/* Methods implementation
 */
static ret_t
props_free (cherokee_handler_server_info_props_t *props)
{
	return cherokee_module_props_free_base (MODULE_PROPS(props));
}
コード例 #3
0
ファイル: handler.c プロジェクト: 304471720/webserver
ret_t
cherokee_handler_props_free_base (cherokee_handler_props_t *props)
{
	return cherokee_module_props_free_base (MODULE_PROPS(props));
}