From 9b53a3e3873afac8b7c32badf0ca6f0465aee66d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Tue, 24 Aug 2021 20:52:18 +0200 Subject: [PATCH] api: Fix plugin feature unref --- lib/gst/clapper/gstclapper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/gst/clapper/gstclapper.c b/lib/gst/clapper/gstclapper.c index 7505da37..36bfdb9a 100644 --- a/lib/gst/clapper/gstclapper.c +++ b/lib/gst/clapper/gstclapper.c @@ -3250,7 +3250,7 @@ gst_clapper_set_feature_rank_versioned (const gchar * name, guint rank, if (!feature) { GST_DEBUG ("Cannot change rank of unavailable feature: %s", name); - goto out; + return res; } if (gst_plugin_feature_check_version (feature, min_major, min_minor, min_micro)) { guint old_rank = gst_plugin_feature_get_rank (feature); @@ -3261,7 +3261,6 @@ gst_clapper_set_feature_rank_versioned (const gchar * name, guint rank, GST_DEBUG ("Feature %s is at older version then required", name); } -out: gst_object_unref (feature); return res; }