]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis_state: Create internal stasis_state_proxy object.
authorCorey Farrell <git@cfware.com>
Fri, 20 Sep 2019 14:08:02 +0000 (10:08 -0400)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 4 Oct 2019 12:08:00 +0000 (07:08 -0500)
commit25fbe7979396d83da3bef91353894e0862bb7897
tree10b439540ebd954815e80455822bd48cb77a94d7
parent57fa6045711d2533de5ea08ec4d30b4ccfc885c2
stasis_state: Create internal stasis_state_proxy object.

This improves the way which stasis_state reference counting works.
Since manager->states holds onto the proxy object instead of the real
object this allows stasis_state objects to be freed when appropriate
without use of a special state_remove function.  Additionally each
distinct eid associated with the state holds a reference to the state to
prevent early release and potentially allow easier debug of leaks.

Change-Id: I400e0db4b9afa3d5cb4ac7dad60907897e73f9a9
main/stasis_state.c