mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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:
parent
1bd280f730
commit
3b80107596
5
ffmpeg.c
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…
x
Reference in New Issue
Block a user