GST_RTSP_PERM_MEDIA_FACTORY_CONSTRUCT))
goto no_construct;
}
+
+ gst_rtsp_permissions_unref (perms);
+
return TRUE;
/* ERRORS */
no_access:
{
GST_DEBUG_OBJECT (auth, "no permissions to access media factory");
+ gst_rtsp_permissions_unref (perms);
send_response (auth, GST_RTSP_STS_NOT_FOUND, ctx);
return FALSE;
}
no_construct:
{
GST_DEBUG_OBJECT (auth, "no permissions to construct media factory");
+ gst_rtsp_permissions_unref (perms);
send_response (auth, GST_RTSP_STS_UNAUTHORIZED, ctx);
return FALSE;
}
GstRTSPMediaFactory *factory = GST_RTSP_MEDIA_FACTORY (obj);
GstRTSPMediaFactoryPrivate *priv = factory->priv;
+ if (priv->permissions)
+ gst_rtsp_permissions_unref (priv->permissions);
g_hash_table_unref (priv->medias);
g_mutex_clear (&priv->medias_lock);
g_free (priv->launch);
GST_INFO ("finalize media %p", media);
+ if (priv->permissions)
+ gst_rtsp_permissions_unref (priv->permissions);
+
g_ptr_array_unref (priv->streams);
g_list_free_full (priv->dynamic, gst_object_unref);