diff options
author | Mark Hills <mark@pogo.org.uk> | 2003-03-26 10:30:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-26 10:30:08 +0000 |
commit | b88ba823153f3a2f5587c439404d66fdbfc68339 (patch) | |
tree | 6100ee5fb1c262ca959323ad55c771ad3267fe61 /ffserver.c | |
parent | 06219cb194e64eb1c0c495e147496c51212dd301 (diff) | |
download | ffmpeg-b88ba823153f3a2f5587c439404d66fdbfc68339.tar.gz |
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.c | 6 |
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) { |