project: Plug a leak
authorThibault Saunier <tsaunier@igalia.com>
Tue, 19 Jan 2021 14:00:22 +0000 (11:00 -0300)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 10 Feb 2021 19:14:47 +0000 (16:14 -0300)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/227>

ges/ges-project.c

index 67ff95c..286d3aa 100644 (file)
@@ -1183,7 +1183,7 @@ ges_project_load (GESProject * project, GESTimeline * timeline, GError ** error)
 {
   g_return_val_if_fail (GES_IS_TIMELINE (timeline), FALSE);
   g_return_val_if_fail (GES_IS_PROJECT (project), FALSE);
-  g_return_val_if_fail (ges_project_get_uri (project), FALSE);
+  g_return_val_if_fail (project->priv->uri, FALSE);
   g_return_val_if_fail (timeline->tracks == NULL, FALSE);
 
   if (!_load_project (project, timeline, error))