Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-05-27 19:57:39 +0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-05-27 21:22:28 +0400
commitfaf8d3ddfa105d7f107a886c5f3cadf6357d89b6 (patch)
treede6a9a0dcaf183e9013c8837f11fe4268cd6e696 /cmdutils.c
parent389e2000ebc299b9da24f7e5faf9a68a88f9ee7c (diff)
cmdutils: use sws_freeContext() instead of av_freep().
av_freep(swsContext) will leak all memory potentially allocated within the swsContext.
Diffstat (limited to 'cmdutils.c')
-rw-r--r--cmdutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmdutils.c b/cmdutils.c
index feeea694d8..778f0fb3cf 100644
--- a/cmdutils.c
+++ b/cmdutils.c
@@ -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