1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

app: fix crash when json parsing fails.

The argument is already a URI, not a GFile.
This commit is contained in:
Jehan
2025-09-11 21:09:52 +02:00
parent bb9aad1e87
commit 4ca05cb38d

View File

@@ -343,12 +343,9 @@ gimp_check_updates_process (const gchar *source,
parser = json_parser_new ();
if (! json_parser_load_from_data (parser, file_contents, file_length, &error))
{
gchar *uri = g_file_get_uri (G_FILE (source));
g_printerr ("%s: parsing of %s failed: %s\n", G_STRFUNC,
uri, error->message);
source, error->message);
g_free (uri);
g_free (file_contents);
g_clear_object (&parser);
g_clear_error (&error);