# HG changeset patch # User aurel # Date 1239107488 0 # Node ID 5748ec2d6705b2a32f51c298684c8251e320419f # Parent 845b210561112b4329e01058797fb36cc6d514e5 use av_freep() instead of av_free() + =NULL. diff -r 845b21056111 -r 5748ec2d6705 avienc.c --- a/avienc.c Tue Apr 07 12:28:41 2009 +0000 +++ b/avienc.c Tue Apr 07 12:31:28 2009 +0000 @@ -586,8 +586,7 @@ for (i=0; iindexes[i].ents_allocated/AVI_INDEX_CLUSTER_SIZE; j++) av_free(avi->indexes[i].cluster[j]); - av_free(avi->indexes[i].cluster); - avi->indexes[i].cluster = NULL; + av_freep(&avi->indexes[i].cluster); avi->indexes[i].ents_allocated = avi->indexes[i].entry = 0; }