TT#85701 fix regression from 8e22c9a41

Make sure we delete all branched B side monologues when deleting the A
side monologue.

Change-Id: If7214443a9d3e76a05c0b1f526eb2d9091aee822
changes/03/41703/1
Richard Fuchs 6 years ago
parent 8e22c9a414
commit 87521ead34

@ -2772,11 +2772,17 @@ static void __monologue_destroy(struct call_monologue *monologue, int recurse) {
if (dialogue == monologue)
continue;
if (monologue->tag.len
&& dialogue->tag.len
&& !g_hash_table_lookup(dialogue->other_tags, &monologue->tag))
continue;
if (monologue->viabranch.len
&& !monologue->tag.len
&& !g_hash_table_lookup(dialogue->branches, &monologue->viabranch))
continue;
if (!dialogue->tag.len
&& dialogue->viabranch.len
&& !g_hash_table_lookup(monologue->branches, &dialogue->viabranch))
continue;
g_hash_table_remove(dialogue->other_tags, &monologue->tag);
g_hash_table_remove(dialogue->branches, &monologue->viabranch);

Loading…
Cancel
Save