예제 #1
0
파일: tag.c 프로젝트: 4ker/myhtml
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;
}
예제 #2
0
파일: tag.c 프로젝트: berezhko/myhtml
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;
}