From 0ff10ac3ca98018a3ce77c53876645601608ab26 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 3 May 2016 11:49:03 +0200 Subject: [PATCH] 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 --- gst/gsturi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/gsturi.c b/gst/gsturi.c index 4ad7d3d..d87d4db 100644 --- a/gst/gsturi.c +++ b/gst/gsturi.c @@ -1556,7 +1556,7 @@ gst_uri_from_string (const gchar * uri) if (eoh == NULL || eoh > eoa) { GST_DEBUG ("Unable to parse the host part of the URI '%s'.", orig_uri); - _gst_uri_free (uri_obj); + gst_uri_unref (uri_obj); return NULL; } reoh = eoh + 1; @@ -1576,7 +1576,7 @@ gst_uri_from_string (const gchar * uri) if (uri[0] != ':' || strspn (uri + 1, "0123456789") != eoa - uri - 1) { GST_DEBUG ("Unable to parse host/port part of the URI '%s'.", orig_uri); - _gst_uri_free (uri_obj); + gst_uri_unref (uri_obj); return NULL; } /* otherwise treat port as unsigned decimal number */ -- 2.7.4