OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
853a975
)
add a termination condition
author
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 4 Jan 2009 17:48:19 +0000
(17:48 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 4 Jan 2009 17:48:19 +0000
(17:48 +0000)
Originally committed as revision 16422 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavutil/tree.c
patch
|
blob
|
history
diff --git
a/libavutil/tree.c
b/libavutil/tree.c
index
64653aa
..
bf485ab
100644
(file)
--- a/
libavutil/tree.c
+++ b/
libavutil/tree.c
@@
-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