sdp: cast away const in call to g_free
authorScott D Phillips <scott.d.phillips@intel.com>
Tue, 15 Nov 2016 00:55:36 +0000 (16:55 -0800)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 15 Nov 2016 12:52:22 +0000 (14:52 +0200)
MSVC warns about the const here. It's safe to cast away.

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

gst-libs/gst/sdp/gstsdpmessage.c

index e5341db..3dc6255 100644 (file)
@@ -361,7 +361,7 @@ gst_sdp_message_copy (const GstSDPMessage * msg, GstSDPMessage ** copy)
 
     gst_sdp_message_add_time (cp, time->start, time->stop, repeat);
 
-    g_free (repeat);
+    g_free ((gchar **) repeat);
   }
 
   len = gst_sdp_message_zones_len (msg);