From 158b3fb58485921ff6761dc7d2e25d7b625434da Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 7 Oct 2014 13:44:26 +0200 Subject: avformat/tiertexseq: use av_freep(), do not leave stale pointers in memory Signed-off-by: Michael Niedermayer --- libavformat/tiertexseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat') diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c index 917a331..659ba06 100644 --- a/libavformat/tiertexseq.c +++ b/libavformat/tiertexseq.c @@ -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; } -- cgit v1.1