uri: unref instead of using _gst_uri_free() directly

This confuses gst_tracing as we shortcut the mini object reference
system.

https://bugzilla.gnome.org/show_bug.cgi?id=765958
This commit is contained in:
Guillaume Desmottes 2016-05-03 11:49:03 +02:00 committed by Sebastian Dröge
parent 8af52df23b
commit 0ff10ac3ca

View file

@ -1556,7 +1556,7 @@ gst_uri_from_string (const gchar * uri)
if (eoh == NULL || eoh > eoa) { if (eoh == NULL || eoh > eoa) {
GST_DEBUG ("Unable to parse the host part of the URI '%s'.", GST_DEBUG ("Unable to parse the host part of the URI '%s'.",
orig_uri); orig_uri);
_gst_uri_free (uri_obj); gst_uri_unref (uri_obj);
return NULL; return NULL;
} }
reoh = eoh + 1; reoh = eoh + 1;
@ -1576,7 +1576,7 @@ gst_uri_from_string (const gchar * uri)
if (uri[0] != ':' || strspn (uri + 1, "0123456789") != eoa - uri - 1) { if (uri[0] != ':' || strspn (uri + 1, "0123456789") != eoa - uri - 1) {
GST_DEBUG ("Unable to parse host/port part of the URI '%s'.", GST_DEBUG ("Unable to parse host/port part of the URI '%s'.",
orig_uri); orig_uri);
_gst_uri_free (uri_obj); gst_uri_unref (uri_obj);
return NULL; return NULL;
} }
/* otherwise treat port as unsigned decimal number */ /* otherwise treat port as unsigned decimal number */