mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
00dc2859f0
commit
4efdb29c75
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue