[FFmpeg-cvslog] r16422 - trunk/libavutil/tree.c
aurel
subversion
Sun Jan 4 18:48:20 CET 2009
Author: aurel
Date: Sun Jan 4 18:48:19 2009
New Revision: 16422
Log:
add a termination condition
Modified:
trunk/libavutil/tree.c
Modified: trunk/libavutil/tree.c
==============================================================================
--- trunk/libavutil/tree.c Sun Jan 4 17:23:18 2009 (r16421)
+++ trunk/libavutil/tree.c Sun Jan 4 18:48:19 2009 (r16422)
@@ -128,9 +128,11 @@ void *av_tree_insert(AVTreeNode **tp, vo
}
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
More information about the ffmpeg-cvslog
mailing list