]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_xmpp: Fix ref counting issue
authorSean Bright <sean.bright@gmail.com>
Thu, 23 Mar 2017 10:19:18 +0000 (06:19 -0400)
committerSean Bright <sean.bright@gmail.com>
Thu, 23 Mar 2017 14:58:29 +0000 (08:58 -0600)
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

res/res_xmpp.c

index 1aa865cd6267f1e9818b6d2c60b2291de69a0d47..ab4ee9e4f01b94986b1c5a0f20b6028b9ca75c03 100644 (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) {