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

Loading…
Cancel
Save