Revision 8a4d067d libavutil/tree.c

View differences:

libavutil/tree.c
135 135
    }
136 136
}
137 137

  
138
void av_tree_destroy_free_elem(AVTreeNode *t){
139
    if(t){
140
        av_tree_destroy_free_elem(t->child[0]);
141
        av_tree_destroy_free_elem(t->child[1]);
142
        av_free(t->elem);
143
        av_free(t);
144
    }
145
}
146

  
147 138
#if 0
148 139
void av_tree_enumerate(AVTreeNode *t, void *opaque, int (*cmp)(void *opaque, void *elem), int (*enu)(void *opaque, void *elem)){
149 140
    if(t){

Also available in: Unified diff