summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Rafael Giani <dv@pseudoterminal.org>2018-07-16 21:57:08 +0200
committerTim-Philipp Müller <tim@centricular.com>2018-07-17 00:03:38 +0100
commitbe649deaf3d04b85c8920addce6124dcdd1481b9 (patch)
treeb3d1cd2a3b2fdbe4e0b65dc2c247da509b5bfb83
parentd6dbfa4d42b3281a291e0682bd89189b69932c82 (diff)
rtsp-media: unref clock (if set) when finalizing
https://bugzilla.gnome.org/show_bug.cgi?id=796814
-rw-r--r--gst/rtsp-server/rtsp-media.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c
index a1ab7aa..33f38f0 100644
--- a/gst/rtsp-server/rtsp-media.c
+++ b/gst/rtsp-server/rtsp-media.c
@@ -474,6 +474,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);