Commit 29775739 authored by jehan's avatar jehan
Browse files

fix expiration timer leak in some situations where dialog are not automatically deleted

parent be8b647f
......@@ -47,6 +47,11 @@ static void belle_sip_dialog_uninit(belle_sip_dialog_t *obj){
belle_sip_object_unref(obj->last_transaction);
if(obj->privacy)
belle_sip_object_unref(obj->privacy);
if (obj->expiration_timer){ /*In some situations, dialog deleted might not be called*/
belle_sip_main_loop_remove_source(obj->provider->stack->ml, obj->expiration_timer);
belle_sip_object_unref(obj->expiration_timer);
obj->expiration_timer = NULL;
}
}
BELLE_SIP_DECLARE_NO_IMPLEMENTED_INTERFACES(belle_sip_dialog_t);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment