Don't leak an ignored error

Runtime metadata is optional, so don't leak an error we get
when the file is not found. Properly ignore it by passing NULL
as the error.
tingping/wmclass
Matthias Clasen 2015-01-25 11:07:03 -05:00
parent a4a25a4a64
commit 45aabf06d9
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ xdg_app_builtin_run (int argc, char **argv, GCancellable *cancellable, GError **
g_debug ("Using runtime in %s", path);
runtime_metadata = g_file_get_child (runtime_deploy, "metadata");
if (g_file_load_contents (runtime_metadata, cancellable, &runtime_metadata_contents, &runtime_metadata_size, NULL, error))
if (g_file_load_contents (runtime_metadata, cancellable, &runtime_metadata_contents, &runtime_metadata_size, NULL, NULL))
{
runtime_metakey = g_key_file_new ();