avformat/dv: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/101/head
Michael Niedermayer 10 years ago
parent 00dc2859f0
commit 4efdb29c75
  1. 2
      libavformat/dv.c

@ -580,7 +580,7 @@ static int dv_read_seek(AVFormatContext *s, int stream_index,
static int dv_read_close(AVFormatContext *s) static int dv_read_close(AVFormatContext *s)
{ {
RawDVContext *c = s->priv_data; RawDVContext *c = s->priv_data;
av_free(c->dv_demux); av_freep(&c->dv_demux);
return 0; return 0;
} }

Loading…
Cancel
Save