mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-19 20:46:22 +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:
|
fail:
|
||||||
GST_INFO ("Reading plugin feature failed");
|
GST_INFO ("Reading plugin feature failed");
|
||||||
g_free (type_name);
|
g_free (type_name);
|
||||||
|
if (feature) {
|
||||||
if (GST_IS_OBJECT (feature))
|
if (GST_IS_OBJECT (feature))
|
||||||
gst_object_unref (feature);
|
gst_object_unref (feature);
|
||||||
else
|
else
|
||||||
g_object_unref (feature);
|
g_object_unref (feature);
|
||||||
|
}
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue