diff options
Diffstat (limited to 'res/res_pjsip_exten_state.c')
-rw-r--r-- | res/res_pjsip_exten_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_exten_state.c b/res/res_pjsip_exten_state.c index a8a11bc7f..27d16bd67 100644 --- a/res/res_pjsip_exten_state.c +++ b/res/res_pjsip_exten_state.c @@ -115,7 +115,7 @@ static void exten_state_subscription_destructor(void *obj) struct exten_state_subscription *sub = obj; ast_free(sub->user_agent); - ao2_cleanup(sub->sip_sub); + ast_sip_subscription_destroy(sub->sip_sub); ast_taskprocessor_unreference(sub->serializer); } @@ -160,7 +160,7 @@ static struct exten_state_subscription *exten_state_subscription_alloc( return NULL; } - exten_state_sub->sip_sub = ao2_bump(sip_sub); + exten_state_sub->sip_sub = sip_sub; /* We keep our own reference to the serializer as there is no guarantee in state_changed * that the subscription tree is still valid when it is called. This can occur when |