From 8720de5b76622e98c1ce729071b3ec3cb777608f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 6 Feb 2006 12:45:52 +0000 Subject: fix memleak, based upon a patch by Wolfram Gloger Originally committed as revision 4947 to svn://svn.ffmpeg.org/ffmpeg/trunk --- output_example.c | 1 + 1 file changed, 1 insertion(+) (limited to 'output_example.c') diff --git a/output_example.c b/output_example.c index 636ad6ee40..365a35e156 100644 --- a/output_example.c +++ b/output_example.c @@ -512,6 +512,7 @@ int main(int argc, char **argv) /* free the streams */ for(i = 0; i < oc->nb_streams; i++) { + av_freep(&oc->streams[i]->codec); av_freep(&oc->streams[i]); } -- cgit v1.2.3