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
This commit is contained in:
Sean Bright 2017-03-23 06:19:18 -04:00
parent c1ab8ca74c
commit ee81ee1f14
1 changed files with 0 additions and 1 deletions

View File

@ -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) {