# HG changeset patch # User michaelni # Date 1063135972 0 # Node ID 35231c0be8e5fd7ab15aa74e271af2d429818709 # Parent ee98d63dbba7f78b4550d2ee8bda3c39cc987242 memleak fix by (Michel Bardiaux ) diff -r ee98d63dbba7 -r 35231c0be8e5 mpeg.c --- a/mpeg.c Tue Sep 09 19:14:05 2003 +0000 +++ b/mpeg.c Tue Sep 09 19:32:52 2003 +0000 @@ -395,6 +395,10 @@ /* write the end header */ //put_be32(&ctx->pb, ISO_11172_END_CODE); //put_flush_packet(&ctx->pb); + + for(i=0;inb_streams;i++) + av_freep(&ctx->streams[i]->priv_data); + return 0; }