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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-12-15 00:16:49 +01:00
parent 00dc2859f0
commit 4efdb29c75
1 changed files with 1 additions and 1 deletions

View File

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