free options contexts in av_exit, valgrind should be happy now

Originally committed as revision 18484 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2009-04-13 03:43:29 +00:00
parent 1bd280f730
commit 3b80107596

View File

@ -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;
}