wispr: Add a reference counter mechanism on contexts
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
Tue, 17 Jul 2012 13:32:06 +0000 (16:32 +0300)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 19 Jul 2012 07:37:28 +0000 (09:37 +0200)
commit6d7e38423da380990cbb57cdbb09cb3e1cd2422e
tree29426071a5c48752fd0c07d5ccad5588418179ec
parentea709457c635c2bc1c5a92565c9ac3f76b912f42
wispr: Add a reference counter mechanism on contexts

Basically, wispr provides a pointer (a wispr/portal context) to third parties
(agent, gweb...) which are answering asynchronously. However, if the technology
related to the service owning such context is disabled: this context is not
valid anymore, leading to a crash when third part answers after such action.

In order to avoid such issue, wispr implement an internal refcount system.

Fixes BMC#25479
src/wispr.c