diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-13 03:43:29 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-04-13 03:43:29 +0000 |
commit | 3b801075962b3295739ec4286d6326c84c0779e3 (patch) | |
tree | 7d89400df83e8911c35c703f71afb28acc47287e | |
parent | 1bd280f73076b7a58371585b95b08379f2445332 (diff) | |
download | ffmpeg-3b801075962b3295739ec4286d6326c84c0779e3.tar.gz |
free options contexts in av_exit, valgrind should be happy now
Originally committed as revision 18484 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -434,6 +434,11 @@ static int av_exit(int ret) exit (255); } + for (i=0;i<CODEC_TYPE_NB;i++) + av_free(avcodec_opts[i]); + av_free(avformat_opts); + av_free(sws_opts); + exit(ret); /* not all OS-es handle main() return value */ return ret; } |