Commit 1d5b61a6 authored by Pekka Pessi's avatar Pekka Pessi

nua_dialog.c: always using nua_dialog_remove() to zap nta_leg

darcs-hash:20070209010705-65a35-80f84220df83e7bee1037babe17152359f863ba5.gz
parent a7930639
......@@ -378,11 +378,9 @@ void nua_dialog_usage_remove_at(nua_owner_t *own,
su_free(own, du);
}
/* Zap dialog if there is no more usages */
/* Zap dialog if there are no more usages */
if (ds->ds_usage == NULL) {
nta_leg_destroy(ds->ds_leg), ds->ds_leg = NULL;
su_free(own, (void *)ds->ds_remote_tag), ds->ds_remote_tag = NULL;
ds->ds_route = 0;
nua_dialog_remove(own, ds, NULL);
ds->ds_has_events = 0;
ds->ds_terminated = 0;
return;
......
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