rtsp-media: Call g_free() instead of g_object_unref() on multicast-iface strings
authorSebastian Dröge <sebastian@centricular.com>
Sun, 18 Sep 2016 13:58:55 +0000 (09:58 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 18 Sep 2016 13:58:55 +0000 (09:58 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=763000#c5

gst/rtsp-server/rtsp-media-factory.c
gst/rtsp-server/rtsp-media.c

index 8665c47..5569f62 100644 (file)
@@ -829,7 +829,7 @@ gst_rtsp_media_factory_set_multicast_iface (GstRTSPMediaFactory * media_factory,
   g_mutex_unlock (&priv->lock);
 
   if (old)
-    g_object_unref (old);
+    g_free (old);
 }
 
 /**
index c08b2a9..c17e85a 100644 (file)
@@ -1606,7 +1606,7 @@ gst_rtsp_media_set_multicast_iface (GstRTSPMedia * media,
   g_mutex_unlock (&priv->lock);
 
   if (old)
-    g_object_unref (old);
+    g_free (old);
 }
 
 /**