summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-13 03:43:29 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-04-13 03:43:29 +0000
commit3b801075962b3295739ec4286d6326c84c0779e3 (patch)
tree7d89400df83e8911c35c703f71afb28acc47287e
parent1bd280f73076b7a58371585b95b08379f2445332 (diff)
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d7c90599d0..e908561d79 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;
}