uri: unref instead of using _gst_uri_free() directly
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 3 May 2016 09:49:03 +0000 (11:49 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 4 May 2016 07:08:24 +0000 (10:08 +0300)
This confuses gst_tracing as we shortcut the mini object reference
system.

https://bugzilla.gnome.org/show_bug.cgi?id=765958

gst/gsturi.c

index 4ad7d3d..d87d4db 100644 (file)
@@ -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 */