Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 10 years ago
parent
commit
eb3e661bab
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ffserver.c

+ 1 - 1
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);