Mercurial > libavformat.hg
changeset 4816:5748ec2d6705 libavformat
use av_freep() instead of av_free() + =NULL.
author | aurel |
---|---|
date | Tue, 07 Apr 2009 12:31:28 +0000 |
parents | 845b21056111 |
children | adb4c38575d1 |
files | avienc.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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; i<MAX_STREAMS; i++) { for (j=0; j<avi->indexes[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; }