changeset 593:6fabc7908537 libavutil

add a termination condition
author aurel
date Sun, 04 Jan 2009 17:48:19 +0000
parents 0a8fe912f5a0
children 1f3b92c985eb
files tree.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tree.c	Sat Dec 27 11:33:26 2008 +0000
+++ b/tree.c	Sun Jan 04 17:48:19 2009 +0000
@@ -128,9 +128,11 @@
 }
 
 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