mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
gdbusconnection: Make GDBusMethodInvocation transfer a bit clearer
Add a missing steal call in `schedule_method_call()`. This introduces no functional changes, but documents the ownership transfer more clearly. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Helps: #2924
This commit is contained in:
parent
d5710deb9d
commit
7b101588e9
@ -5043,7 +5043,7 @@ schedule_method_call (GDBusConnection *connection,
|
||||
g_source_set_priority (idle_source, G_PRIORITY_DEFAULT);
|
||||
g_source_set_callback (idle_source,
|
||||
call_in_idle_cb,
|
||||
invocation,
|
||||
g_steal_pointer (&invocation),
|
||||
g_object_unref);
|
||||
g_source_set_static_name (idle_source, "[gio, " __FILE__ "] call_in_idle_cb");
|
||||
g_source_attach (idle_source, main_context);
|
||||
|
Loading…
Reference in New Issue
Block a user