From 0032ded7593b8851c7b9e3c7d4b218d1c58141e1 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 8 Oct 2024 13:57:41 +0100 Subject: [PATCH] gopenuriportal: Use g_steal_handle_id() for ownership transfers This introduces no functional changes, but documents the intent a bit better in the code where these signal IDs are stored in a struct. Signed-off-by: Philip Withnall --- gio/gopenuriportal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gopenuriportal.c b/gio/gopenuriportal.c index 81e8e072d..d23a99236 100644 --- a/gio/gopenuriportal.c +++ b/gio/gopenuriportal.c @@ -244,7 +244,7 @@ open_call_done (GObject *source, task, NULL); g_clear_pointer (&call_data->response_handle, g_free); - call_data->response_signal_id = signal_id; + call_data->response_signal_id = g_steal_handle_id (&signal_id); call_data->response_handle = g_steal_pointer (&path); } @@ -329,7 +329,7 @@ g_openuri_portal_open_file_async (GFile *file, call_data = call_data_new (); call_data->proxy = g_object_ref (openuri); call_data->response_handle = g_steal_pointer (&handle); - call_data->response_signal_id = signal_id; + call_data->response_signal_id = g_steal_handle_id (&signal_id); g_task_set_task_data (task, call_data, call_data_free); } else