summaryrefslogtreecommitdiff
path: root/ffserver.c
diff options
context:
space:
mode:
authorMark Hills <mark@pogo.org.uk>2003-03-26 10:30:08 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-03-26 10:30:08 +0000
commitb88ba823153f3a2f5587c439404d66fdbfc68339 (patch)
tree6100ee5fb1c262ca959323ad55c771ad3267fe61 /ffserver.c
parent06219cb194e64eb1c0c495e147496c51212dd301 (diff)
ffserver deallocate ctx->streams on closing patch by (Mark Hills <mark at pogo dot org dot uk>)
Originally committed as revision 1704 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index 73e61e5a53..173ae8457b 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -744,8 +744,12 @@ static void close_connection(HTTPContext *c)
}
}
+ ctx = &c->fmt_ctx;
+
+ for(i=0; i<ctx->nb_streams; i++)
+ av_free(ctx->streams[i]) ;
+
if (!c->last_packet_sent) {
- ctx = &c->fmt_ctx;
if (ctx->oformat) {
/* prepare header */
if (url_open_dyn_buf(&ctx->pb) >= 0) {