agent: Fixes refcounting issue
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Thu, 13 Sep 2012 07:32:23 +0000 (10:32 +0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 13 Sep 2012 10:41:31 +0000 (13:41 +0300)
commitf9241eaa486e3012af9fbf3f8e883e250c6f7ce2
tree09dd58c1ec60fc0e96b49cfe5f7b2aa55dbb191d
parent7b0eb7bcef48a5e5b13e60892948cab1d27138d3
agent: Fixes refcounting issue

Since service is referenced already in the message queue, there is no need
to reference it also in the callback data: this might lead to an over refcount
issue if the queue message is canceled before receiving any answer to it.
(callback's data refcount is still there).
src/agent.c