diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-02-06 12:45:52 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-02-06 12:45:52 +0000 |
commit | 8720de5b76622e98c1ce729071b3ec3cb777608f (patch) | |
tree | 87ac9ab183dc0c39409503249b98612d6aedc5c8 /output_example.c | |
parent | 8cb90572a2bfc8565c387af869564529636c5664 (diff) | |
download | ffmpeg-8720de5b76622e98c1ce729071b3ec3cb777608f.tar.gz |
fix memleak, based upon a patch by Wolfram Gloger
Originally committed as revision 4947 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'output_example.c')
-rw-r--r-- | output_example.c | 1 |
1 files changed, 1 insertions, 0 deletions
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]); } |