pluginfeature: Fix object leak
Need to release GstPluginFeature object after use Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1521>
This commit is contained in:
parent
e37bbc054e
commit
67dce4c12c
@ -491,6 +491,7 @@ _priv_gst_plugin_feature_rank_initialize (void)
|
|||||||
if (feature) {
|
if (feature) {
|
||||||
gst_plugin_feature_set_rank (feature, rank);
|
gst_plugin_feature_set_rank (feature, rank);
|
||||||
GST_DEBUG ("Update rank of plugin feature \"%s\" to %d", str, rank);
|
GST_DEBUG ("Update rank of plugin feature \"%s\" to %d", str, rank);
|
||||||
|
gst_object_unref (feature);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user