]> 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:21 +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 32e1dd1ffc9fa804f6c36585995350709118c9db..1d92931773bb44dee383492e35137c1cb41bc16f 100644 (file)
@@ -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) {