[gnome-builder] jsonrpc: return floating ref for message
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] jsonrpc: return floating ref for message
- Date: Fri, 31 Mar 2017 00:56:31 +0000 (UTC)
commit b4be8abfdd92ed106132f9649c5aa67a25854a01
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 30 13:03:18 2017 -0600
jsonrpc: return floating ref for message
We want this to get consumed all the way down when doing a call.
contrib/jsonrpc-glib/jsonrpc-message.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/contrib/jsonrpc-glib/jsonrpc-message.c b/contrib/jsonrpc-glib/jsonrpc-message.c
index 15d029b..d14fc6b 100644
--- a/contrib/jsonrpc-glib/jsonrpc-message.c
+++ b/contrib/jsonrpc-glib/jsonrpc-message.c
@@ -225,7 +225,7 @@ jsonrpc_message_new_valist (gpointer first_param,
if (first_param != NULL)
jsonrpc_message_build_object (&builder, first_param, args);
- return g_variant_ref_sink (g_variant_builder_end (&builder));
+ return g_variant_builder_end (&builder);
}
GVariant *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]