myhtml_tag_t * myhtml_tag_destroy(myhtml_tag_t* tags) { if(tags == NULL) return NULL; tags->tree = mctree_destroy(tags->tree); tags->mcsimple_context = mcsimple_destroy(tags->mcsimple_context, true); mchar_async_node_delete(tags->mchar, tags->mchar_node); free(tags); return NULL; }
myhtml_tag_t * myhtml_tag_destroy(myhtml_tag_t* tags) { if(tags == NULL) return NULL; if(tags->context) free(tags->context); if(tags->cache_name) free(tags->cache_name); tags->tree = mctree_destroy(tags->tree); tags->index_nodes = mcobject_async_destroy(tags->index_nodes, mytrue); free(tags); return NULL; }