From b853685dd4ab6ff135f98c041248f4b5e18056d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Fri, 22 Oct 2021 13:07:04 +0200 Subject: [PATCH] gstclapper: Fix decoder stream ID string leak --- lib/gst/clapper/gstclapper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index 865b9ac5..e97d6aed 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -3091,11 +3091,12 @@ iterate_decoder_pads (GstClapper * self, GstElement * element, if (plugin_name) { GST_DEBUG_OBJECT (self, "Found decoder: %s", plugin_name); emit_decoder_changed (self, plugin_name, type); - } - g_free (plugin_name); + g_free (plugin_name); + } } + g_free (decoder_stream_id); g_value_unset (&value); if (found)