diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2023-02-22 12:50:10 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2023-02-23 13:05:57 +0000 |
commit | 2da9ca2727a559a5e6b517582d14ba05d963f603 (patch) | |
tree | 877352c04f593e82dbbda7bbba62f6faffcf1e5e | |
parent | b29892237d3d0fa9b4615c9428d438aec60f1d82 (diff) | |
download | glib-2da9ca2727a559a5e6b517582d14ba05d963f603.tar.gz |
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
-rw-r--r-- | gio/gdbusconnection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 663cd95ab..368898d5b 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -5048,7 +5048,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); |