avformat/tiertexseq: use av_freep(), do not leave stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Oct 2014 11:44:26 +0000 (13:44 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Oct 2014 11:46:29 +0000 (13:46 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tiertexseq.c

index 917a331..659ba06 100644 (file)
@@ -301,7 +301,7 @@ static int seq_read_close(AVFormatContext *s)
     SeqDemuxContext *seq = s->priv_data;
 
     for (i = 0; i < SEQ_NUM_FRAME_BUFFERS; i++)
-        av_free(seq->frame_buffers[i].data);
+        av_freep(&seq->frame_buffers[i].data);
 
     return 0;
 }