udp: don't use protocol in debug message after freeing

This commit is contained in:
Stefan Kost 2009-03-31 11:50:41 +03:00
parent 6e5f789fa0
commit ba2c101963
2 changed files with 2 additions and 2 deletions

View file

@ -223,9 +223,9 @@ gst_udpsink_set_uri (GstUDPSink * sink, const gchar * uri)
/* ERRORS */
wrong_protocol:
{
g_free (protocol);
GST_ELEMENT_ERROR (sink, RESOURCE, READ, (NULL),
("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol));
g_free (protocol);
return FALSE;
}
}

View file

@ -645,9 +645,9 @@ gst_udpsrc_set_uri (GstUDPSrc * src, const gchar * uri)
/* ERRORS */
wrong_protocol:
{
g_free (protocol);
GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol));
g_free (protocol);
return FALSE;
}
}