diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-03-23 06:19:18 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-03-25 12:01:28 -0400 |
commit | 55693383e204d51eea08d6bb7f1a030c472ea0f9 (patch) | |
tree | 65f9e325b22b946c432411d84974c204e5f6b930 | |
parent | 39fff2ebf9356eaceac6aa0c783a8616cc3b9491 (diff) |
res_xmpp: Fix ref counting issue
The only remaining reference to the endpoint is in the endpoints
container, and because it is unlinked in ast_endpoint_shutdown, we don't
have to explicitly cleanup the endpoint ourselves.
Change-Id: I912a2692e52d3e2ed445b32d8ae3f9004bc2f2e8
-rw-r--r-- | res/res_xmpp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/res/res_xmpp.c b/res/res_xmpp.c index 11fbd2aeb..e422c14a2 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -561,7 +561,6 @@ static void xmpp_client_destructor(void *obj) ast_xmpp_client_disconnect(client); ast_endpoint_shutdown(client->endpoint); - ao2_cleanup(client->endpoint); client->endpoint = NULL; if (client->filter) { |