MT#55283 don't try to free NULL string

Silences warning from Glib.

Change-Id: Ie0d852023ccddc5cb5a03b9b70dda9aeb69f285e
pull/1692/head
Richard Fuchs 2 years ago
parent c109168bae
commit 051a41c649

@ -2880,7 +2880,8 @@ static void sdp_version_check(struct sdp_chopper *chop, GQueue *sessions, struct
/* mismatch detected. increment version, update again, and store copy */
monologue->sdp_version++;
sdp_version_replace(chop, sessions, monologue);
g_string_free(monologue->last_out_sdp, TRUE);
if (monologue->last_out_sdp)
g_string_free(monologue->last_out_sdp, TRUE);
dup:
monologue->last_out_sdp = g_string_new_len(chop->output->str, chop->output->len);
}

Loading…
Cancel
Save