ffserver: Use avio_closep() to avoid leaving stale pointers in memor
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Jan 2015 13:11:12 +0000 (14:11 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 8 Jan 2015 13:11:12 +0000 (14:11 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffserver.c

index c4cf390..1f20d19 100644 (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);