mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
cmdutils: use sws_freeContext() instead of av_freep().
av_freep(swsContext) will leak all memory potentially allocated within the swsContext.
This commit is contained in:
parent
389e2000eb
commit
faf8d3ddfa
@ -76,7 +76,8 @@ void uninit_opts(void)
|
||||
av_freep(&avformat_opts->key);
|
||||
av_freep(&avformat_opts);
|
||||
#if CONFIG_SWSCALE
|
||||
av_freep(&sws_opts);
|
||||
sws_freeContext(sws_opts);
|
||||
sws_opts = NULL;
|
||||
#endif
|
||||
for (i = 0; i < opt_name_count; i++) {
|
||||
//opt_values are only stored for codec-specific options in which case
|
||||
|
Loading…
Reference in New Issue
Block a user