diff options
author | Seungha Yang <seungha.yang@navercorp.com> | 2018-06-15 22:48:42 +0900 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2018-06-15 10:17:14 -0400 |
commit | 9e981ed503963a7a6eefb3138a083fa6ec6e4f92 (patch) | |
tree | 5351a3a5832ecb065b5eb4d2e8f7f9b31e5bcfd6 /gst-libs | |
parent | 39365948fffac402cde87288ec9c17bce83a7521 (diff) | |
download | gstreamer-plugins-bad-9e981ed503963a7a6eefb3138a083fa6ec6e4f92.tar.gz |
videoaggregator: Fix string leak
gst_video_colorimetry_to_string() returns allocated memory which
must be freed.
https://bugzilla.gnome.org/show_bug.cgi?id=796596
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/video/gstvideoaggregator.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gst-libs/gst/video/gstvideoaggregator.c b/gst-libs/gst/video/gstvideoaggregator.c index 67de8909f..4e1fc26bf 100644 --- a/gst-libs/gst/video/gstvideoaggregator.c +++ b/gst-libs/gst/video/gstvideoaggregator.c @@ -891,13 +891,14 @@ gst_video_aggregator_default_update_caps (GstVideoAggregator * vagg, gst_caps_unref (tmp); } + color_name = gst_video_colorimetry_to_string (&best_info.colorimetry); + GST_DEBUG_OBJECT (vagg, "The output format will now be : %d with chroma : %s and colorimetry %s", best_format, gst_video_chroma_to_string (best_info.chroma_site), - gst_video_colorimetry_to_string (&best_info.colorimetry)); + color_name); best_format_caps = gst_caps_copy (caps); - color_name = gst_video_colorimetry_to_string (&best_info.colorimetry); gst_caps_set_simple (best_format_caps, "format", G_TYPE_STRING, gst_video_format_to_string (best_format), "chroma-site", G_TYPE_STRING, gst_video_chroma_to_string (best_info.chroma_site), "colorimetry", |