mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
binaryregistry: don't unref NULL if we have an early read error
This commit is contained in:
parent
1d0c6a669f
commit
de1e991dec
1 changed files with 6 additions and 4 deletions
|
@ -1045,10 +1045,12 @@ gst_registry_binary_load_feature (GstRegistry * registry, gchar ** in,
|
|||
fail:
|
||||
GST_INFO ("Reading plugin feature failed");
|
||||
g_free (type_name);
|
||||
if (feature) {
|
||||
if (GST_IS_OBJECT (feature))
|
||||
gst_object_unref (feature);
|
||||
else
|
||||
g_object_unref (feature);
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue