1
0
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:
Michael Niedermayer 2015-01-08 14:11:12 +01:00
parent 78cb3c069d
commit eb3e661bab

View File

@ -3630,7 +3630,7 @@ static void build_feed_streams(void)
}
/* XXX: need better API */
av_freep(&s->priv_data);
avio_close(s->pb);
avio_closep(&s->pb);
s->streams = NULL;
s->nb_streams = 0;
avformat_free_context(s);