summaryrefslogtreecommitdiff
path: root/libavformat/avienc.c
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-04-07 12:31:28 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-04-07 12:31:28 +0000
commitb02d3aef9415bb07db1bd3ee285dad92b35eee41 (patch)
tree92fa59e74dbd61b5a41f8a8f96094f16d7342b5a /libavformat/avienc.c
parent0f55f341fe578d076e16165880398fc038df1dc0 (diff)
use av_freep() instead of av_free() + =NULL.
Originally committed as revision 18349 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r--libavformat/avienc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c
index 0e55953850..3fd98692ab 100644
--- a/libavformat/avienc.c
+++ b/libavformat/avienc.c
@@ -586,8 +586,7 @@ static int avi_write_trailer(AVFormatContext *s)
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;
}