From 12c2dd6e1c725b6072b8b9fc06ddda0e2057b4b5 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Mon, 16 Jul 2018 21:57:08 +0200 Subject: [PATCH] rtsp-media: unref clock (if set) when finalizing https://bugzilla.gnome.org/show_bug.cgi?id=796814 --- gst/rtsp-server/rtsp-media.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c index 74d52803be..f23b4c5d46 100644 --- a/gst/rtsp-server/rtsp-media.c +++ b/gst/rtsp-server/rtsp-media.c @@ -475,6 +475,8 @@ gst_rtsp_media_finalize (GObject * obj) g_object_unref (priv->pool); if (priv->payloads) g_list_free (priv->payloads); + if (priv->clock) + gst_object_unref (priv->clock); g_free (priv->multicast_iface); g_mutex_clear (&priv->lock); g_cond_clear (&priv->cond);