Fix leak in build-finish

We already found the deploy_dir, no need to do it again.
This commit is contained in:
Alexander Larsson
2018-12-10 11:51:38 +01:00
parent 426eae070f
commit ddbc5266b8

View File

@@ -473,11 +473,6 @@ update_metadata (GFile *base, FlatpakContext *arg_context, gboolean is_runtime,
gsize runtime_metadata_size;
g_autoptr(GKeyFile) runtime_metakey = NULL;
runtime_deploy_dir = flatpak_find_deploy_dir_for_ref (runtime_ref, NULL, cancellable, error);
if (runtime_deploy_dir == NULL)
goto out;
runtime_metadata_file = g_file_get_child (runtime_deploy_dir, "metadata");
if (!g_file_load_contents (runtime_metadata_file, cancellable,
&runtime_metadata_contents, &runtime_metadata_size, NULL, error))