rtsp-media: unref clock (if set) when finalizing

https://bugzilla.gnome.org/show_bug.cgi?id=796814
This commit is contained in:
Carlos Rafael Giani 2018-07-16 21:57:08 +02:00 committed by Tim-Philipp Müller
parent e99471a56b
commit 12c2dd6e1c

View file

@ -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);