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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/102/head
Michael Niedermayer 10 years ago
parent 78cb3c069d
commit eb3e661bab
  1. 2
      ffserver.c

@ -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);

Loading…
Cancel
Save