media-factory: unref clock in finalize

https://bugzilla.gnome.org/show_bug.cgi?id=796724
This commit is contained in:
Brendan Shanks 2018-06-29 15:20:57 -07:00 committed by Tim-Philipp Müller
parent 1cd6c0340e
commit f304096994

View file

@ -277,6 +277,8 @@ gst_rtsp_media_factory_finalize (GObject * obj)
GstRTSPMediaFactory *factory = GST_RTSP_MEDIA_FACTORY (obj);
GstRTSPMediaFactoryPrivate *priv = factory->priv;
if (priv->clock)
gst_object_unref (priv->clock);
if (priv->permissions)
gst_rtsp_permissions_unref (priv->permissions);
g_hash_table_unref (priv->medias);