summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2009-03-31 11:50:41 +0300
committerStefan Kost <ensonic@users.sf.net>2009-03-31 11:50:41 +0300
commitba2c10196354cca88955b8020c0c511109949a05 (patch)
tree2f1f23e8d3e00905365af36f4ce125ec150a366c
parent6e5f789fa029f434213871415c3438d0ad6db500 (diff)
udp: don't use protocol in debug message after freeing
-rw-r--r--gst/udp/gstudpsink.c2
-rw-r--r--gst/udp/gstudpsrc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst/udp/gstudpsink.c b/gst/udp/gstudpsink.c
index a9666ed07..cc5c84dae 100644
--- a/gst/udp/gstudpsink.c
+++ b/gst/udp/gstudpsink.c
@@ -223,9 +223,9 @@ gst_udpsink_set_uri (GstUDPSink * sink, const gchar * uri)
223 /* ERRORS */ 223 /* ERRORS */
224wrong_protocol: 224wrong_protocol:
225 { 225 {
226 g_free (protocol);
227 GST_ELEMENT_ERROR (sink, RESOURCE, READ, (NULL), 226 GST_ELEMENT_ERROR (sink, RESOURCE, READ, (NULL),
228 ("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol)); 227 ("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol));
228 g_free (protocol);
229 return FALSE; 229 return FALSE;
230 } 230 }
231} 231}
diff --git a/gst/udp/gstudpsrc.c b/gst/udp/gstudpsrc.c
index df2b8932b..c84e46cfc 100644
--- a/gst/udp/gstudpsrc.c
+++ b/gst/udp/gstudpsrc.c
@@ -645,9 +645,9 @@ gst_udpsrc_set_uri (GstUDPSrc * src, const gchar * uri)
645 /* ERRORS */ 645 /* ERRORS */
646wrong_protocol: 646wrong_protocol:
647 { 647 {
648 g_free (protocol);
649 GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL), 648 GST_ELEMENT_ERROR (src, RESOURCE, READ, (NULL),
650 ("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol)); 649 ("error parsing uri %s: wrong protocol (%s != udp)", uri, protocol));
650 g_free (protocol);
651 return FALSE; 651 return FALSE;
652 } 652 }
653} 653}