]> 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>
Sat, 25 Mar 2017 16:01:28 +0000 (12:01 -0400)
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 11fbd2aeb92017cf05e8e91393e420fb2b407b3f..e422c14a2aa287e628ee5344a1c8113d1694b518 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) {