summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-10-07 13:44:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-07 13:46:29 +0200
commit158b3fb58485921ff6761dc7d2e25d7b625434da (patch)
treee051b7223d5a740f11952294e3c7b1e75fb6d2fa /libavformat
parent2d6f31730c60bd15f2c22ca3ca24aae49a34eddd (diff)
avformat/tiertexseq: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/tiertexseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tiertexseq.c b/libavformat/tiertexseq.c
index 917a331444..659ba06dd7 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;
}