From f7e879aa18d874d21024093fd0f09e8ec7f24d26 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 25 Apr 2013 21:10:04 +0200 Subject: [PATCH] sdp: Store a copy of the bandwidth string Otherwise we will free a string later that does not belong to us. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=698888 --- gst-libs/gst/sdp/gstsdpmessage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/sdp/gstsdpmessage.c b/gst-libs/gst/sdp/gstsdpmessage.c index e26fcbfd44..9c1a965943 100644 --- a/gst-libs/gst/sdp/gstsdpmessage.c +++ b/gst-libs/gst/sdp/gstsdpmessage.c @@ -1180,7 +1180,7 @@ gst_sdp_message_add_bandwidth (GstSDPMessage * msg, const gchar * bwtype, { GstSDPBandwidth bw; - bw.bwtype = (gchar *) bwtype; + bw.bwtype = g_strdup (bwtype); bw.bandwidth = bandwidth; return gst_sdp_message_insert_bandwidth (msg, -1, &bw);