Skip to content
Snippets Groups Projects
Commit d8bd113e authored by Aurelien Jacobs's avatar Aurelien Jacobs
Browse files

add a termination condition

Originally committed as revision 16422 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 853a9753
No related branches found
No related tags found
No related merge requests found
......@@ -128,9 +128,11 @@ void *av_tree_insert(AVTreeNode **tp, void *key, int (*cmp)(void *key, const voi
}
void av_tree_destroy(AVTreeNode *t){
if(t){
av_tree_destroy(t->child[0]);
av_tree_destroy(t->child[1]);
av_free(t);
}
}
#if 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment