rtpsrc: Plug leak of rtcp_send_addr
authorJan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com>
Fri, 7 May 2021 09:13:06 +0000 (11:13 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 7 May 2021 12:34:20 +0000 (12:34 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2226>

gst/rtp/gstrtpsrc.c

index 6f91285..c3103a8 100644 (file)
@@ -335,6 +335,8 @@ gst_rtp_src_finalize (GObject * gobject)
   if (self->caps)
     gst_caps_unref (self->caps);
 
+  g_clear_object (&self->rtcp_send_addr);
+
   g_mutex_clear (&self->lock);
   G_OBJECT_CLASS (parent_class)->finalize (gobject);
 }