X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hreq.c;h=ba11e74180c7643c3de9212da028f47f4a10ab42;hb=770ca7e254bba07bb7d1ade4fa95afed7a7f7693;hp=dc02e6feabca0e77ee32635f140123f85f24941a;hpb=dd4c9c11ba5e1f9068ddd20e06db6dca067f01b9;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hreq.c b/src/afb-hreq.c index dc02e6fe..ba11e741 100644 --- a/src/afb-hreq.c +++ b/src/afb-hreq.c @@ -325,14 +325,14 @@ static void req_destroy(struct afb_xreq *xreq) void afb_hreq_addref(struct afb_hreq *hreq) { - afb_xreq_addref(&hreq->xreq); + afb_xreq_unhooked_addref(&hreq->xreq); } void afb_hreq_unref(struct afb_hreq *hreq) { if (hreq->replied) hreq->xreq.replied = 1; - afb_xreq_unref(&hreq->xreq); + afb_xreq_unhooked_unref(&hreq->xreq); } /* @@ -923,7 +923,7 @@ void afb_hreq_call(struct afb_hreq *hreq, struct afb_apiset *apiset, const char } else if (afb_hreq_init_context(hreq) < 0) { afb_hreq_reply_error(hreq, MHD_HTTP_INTERNAL_SERVER_ERROR); } else { - afb_xreq_addref(&hreq->xreq); /* TODO check if needed */ + afb_xreq_unhooked_addref(&hreq->xreq); afb_xreq_process(&hreq->xreq, apiset); } }