[glib/task-strdup-avoidance: 2/3] gdbus: Set a name on all sources




commit 2c1c4282ceccfc357a664974ddd4984ea6829879
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 27 21:33:50 2022 -0400

    gdbus: Set a name on all sources
    
    We already set names on most sources, this
    one was just forgotten. This lets us set
    a static name, and prevents g_task_attach_source
    from setting a non-static one.

 gio/gdbusconnection.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c
index 663cd95abd..d9887f768e 100644
--- a/gio/gdbusconnection.c
+++ b/gio/gdbusconnection.c
@@ -1945,6 +1945,7 @@ g_dbus_connection_send_message_with_reply_unlocked (GDBusConnection     *connect
   if (timeout_msec != G_MAXINT)
     {
       data->timeout_source = g_timeout_source_new (timeout_msec);
+      g_source_set_static_name (data->timeout_source, "[gio] send_message_with_reply_unlocked");
       g_task_attach_source (task, data->timeout_source,
                             (GSourceFunc) send_message_with_reply_timeout_cb);
       g_source_unref (data->timeout_source);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]