Merge branch 'backport-4176-openuri-leak-fix-glib-2-82' into 'glib-2-82'

Backport !4176 “gopenuriportal: Fix two memory leaks” to glib-2-82

See merge request GNOME/glib!4325
This commit is contained in:
Michael Catanzaro 2024-10-01 18:03:49 +00:00
commit 2b08f0bd0b

View File

@ -249,6 +249,8 @@ open_call_done (GObject *source,
NULL);
g_object_set_data (G_OBJECT (task), "signal-id", GINT_TO_POINTER (signal_id));
}
g_free (path);
}
void
@ -334,6 +336,7 @@ g_openuri_portal_open_file_async (GFile *file,
errsv = errno;
if (fd == -1)
{
g_clear_object (&task);
g_task_report_new_error (NULL, callback, user_data, NULL,
G_IO_ERROR, g_io_error_from_errno (errsv),
"OpenURI portal is not available");