free options contexts in av_exit, valgrind should be happy now

Originally committed as revision 18484 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Baptiste Coudurier 16 years ago
parent 1bd280f730
commit 3b80107596
  1. 5
      ffmpeg.c

@ -434,6 +434,11 @@ static int av_exit(int ret)
exit (255); 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 */ exit(ret); /* not all OS-es handle main() return value */
return ret; return ret;
} }

Loading…
Cancel
Save