media-factory: unref clock in finalize
authorBrendan Shanks <brendan.shanks@teradek.com>
Fri, 29 Jun 2018 22:20:57 +0000 (15:20 -0700)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 12 Jul 2018 18:02:40 +0000 (19:02 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=796724

gst/rtsp-server/rtsp-media-factory.c

index bbb6a91..6df726f 100644 (file)
@@ -277,6 +277,8 @@ gst_rtsp_media_factory_finalize (GObject * obj)
   GstRTSPMediaFactory *factory = GST_RTSP_MEDIA_FACTORY (obj);
   GstRTSPMediaFactoryPrivate *priv = factory->priv;
 
   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);
   if (priv->permissions)
     gst_rtsp_permissions_unref (priv->permissions);
   g_hash_table_unref (priv->medias);