Commit eb3e661b authored by Michael Niedermayer's avatar Michael Niedermayer

ffserver: Use avio_closep() to avoid leaving stale pointers in memor

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 78cb3c06
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment