aboutsummaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorMichael Niedermayer2015-01-08 14:11:12 +0100
committerMichael Niedermayer2015-01-08 14:11:12 +0100
commiteb3e661babfdd9583db1a6706ca526a33b49a467 (patch)
tree7e17484c3257f91ad965a9250110330867608a2c /ffserver.c
parent78cb3c069d15803b9b02c22eaddd9db3cfa7707f (diff)
ffserver: Use avio_closep() to avoid leaving stale pointers in memor
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index c4cf390de5..1f20d199a2 100644
--- a/ffserver.c
+++ b/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);