summaryrefslogtreecommitdiffstats
path: root/src/afb-api-dbus.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-20 12:19:24 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:31 +0200
commit770ca7e254bba07bb7d1ade4fa95afed7a7f7693 (patch)
tree0e8b0d4500ac6c481620ec45892d3f0c5d424287 /src/afb-api-dbus.c
parentdd4c9c11ba5e1f9068ddd20e06db6dca067f01b9 (diff)
afb-xreq: hide internal addref/unref to xreqs
Change-Id: Ie175ec1e508c7bd3bcdc25d7e0b26e7a9da3fafb Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-api-dbus.c')
-rw-r--r--src/afb-api-dbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/afb-api-dbus.c b/src/afb-api-dbus.c
index 3884b60f..2d03269f 100644
--- a/src/afb-api-dbus.c
+++ b/src/afb-api-dbus.c
@@ -238,7 +238,7 @@ static struct dbus_memo *api_dbus_client_memo_make(struct api_dbus *api, struct
memo = malloc(sizeof *memo);
if (memo != NULL) {
- afb_xreq_addref(xreq);
+ afb_xreq_unhooked_addref(xreq);
memo->xreq = xreq;
memo->msgid = 0;
memo->api = api;
@@ -262,7 +262,7 @@ static void api_dbus_client_memo_destroy(struct dbus_memo *memo)
prv = &(*prv)->next;
}
- afb_xreq_unref(memo->xreq);
+ afb_xreq_unhooked_unref(memo->xreq);
free(memo);
}