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

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2022-01-13 22:45:08 +0300
committerTim-Philipp Müller <tim@centricular.com>2022-01-18 02:58:01 +0300
commitba873ba8b9aff01f019ce43d7291f4e13618cc4d (patch)
tree82ba99bd47e0313c216cbca7cf199b8ba3c82fb2
parentf263bdcb2b4dbb5a5d7453645e0f58ef23c451e1 (diff)
pluginfeature: Fix object leak
Need to release GstPluginFeature object after use Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1534>
-rw-r--r--gst/gstpluginfeature.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gstpluginfeature.c b/gst/gstpluginfeature.c
index e7c741de8b..664a85385a 100644
--- a/gst/gstpluginfeature.c
+++ b/gst/gstpluginfeature.c
@@ -489,6 +489,7 @@ _priv_gst_plugin_feature_rank_initialize (void)
if (feature) {
gst_plugin_feature_set_rank (feature, rank);
GST_DEBUG ("Update rank of plugin feature \"%s\" to %d", str, rank);
+ gst_object_unref (feature);
}
}
}