Revision fee6faa2 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

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

Also available in: Unified diff