reply: fix ref-leak
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 8 Jan 2015 15:57:30 +0000 (16:57 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 8 Jan 2015 15:57:30 +0000 (16:57 +0100)
commitb6bcf921d865515151ac389d579640b4139244eb
tree3b7e1bb45693634ae0be7cdf999d60f948f07e4a
parent9b379c4a3affa5477e68135b6738cd5b7c80b865
reply: fix ref-leak

Introduce kdbus_reply_link/unlink() which take care of the list-owned
reference to the reply object. Fix all the callsides to use it and
properly let each caller own its own reference now. We no longer have to
be aware of the queue-state at all times, instead, the list-state owns its
own reference.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
connection.c
queue.c
reply.c
reply.h