From da58b2939939303a4ba76a21a620a42317942d8f Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Mon, 19 Feb 2024 14:20:39 +0100 Subject: [PATCH] Document ownership of reference in dbus_connection_send_with_reply() Signed-off-by: Wiebe Cazemier --- dbus/dbus-connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index 13f5085fa..53ca34a8b 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -3403,7 +3403,8 @@ reply_handler_timeout (void *data) * @param pending_return return location for a #DBusPendingCall * object, or #NULL if connection is disconnected or when you try to * send Unix file descriptors on a connection that does not support - * them. + * them. The caller owns this reference, and is responsible for calling + * dbus_pending_call_unref() when it is no longer needed. * @param timeout_milliseconds timeout in milliseconds, -1 (or * #DBUS_TIMEOUT_USE_DEFAULT) for default or #DBUS_TIMEOUT_INFINITE for no * timeout -- 2.47.3