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-23 08:58:29 -0600 |
commit | ee81ee1f143cfd2c4174c87d779ebe5c5d078f94 (patch) | |
tree | bb48dd89434cb51ba9da753d163e567614aebe4b | |
parent | c1ab8ca74cec45730107cca3ed47fc61460365e4 (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 1aa865cd6..ab4ee9e4f 100644 --- a/res/res_xmpp.c +++ b/res/res_xmpp.c @@ -559,7 +559,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) { |