You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user