mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
ffserver: Use avio_closep() to avoid leaving stale pointers in memor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
78cb3c069d
commit
eb3e661bab
@ -3630,7 +3630,7 @@ static void build_feed_streams(void)
|
|||||||
}
|
}
|
||||||
/* XXX: need better API */
|
/* XXX: need better API */
|
||||||
av_freep(&s->priv_data);
|
av_freep(&s->priv_data);
|
||||||
avio_close(s->pb);
|
avio_closep(&s->pb);
|
||||||
s->streams = NULL;
|
s->streams = NULL;
|
||||||
s->nb_streams = 0;
|
s->nb_streams = 0;
|
||||||
avformat_free_context(s);
|
avformat_free_context(s);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user