MT#55283 silence compiler warning

g_string_free(..., FALSE) is declared as warn_unused_result

closes 

Change-Id: Ib0a7fb4eab4359226fba519cfd485fb3228a0bc7
pull/1694/head
Richard Fuchs 2 years ago
parent 0a400e05c2
commit 37d7762fec

@ -2216,8 +2216,9 @@ void sdp_chopper_destroy(struct sdp_chopper *chop) {
void sdp_chopper_destroy_ret(struct sdp_chopper *chop, str *ret) {
*ret = STR_NULL;
if (chop->output) {
str_init_len(ret, chop->output->str, chop->output->len);
g_string_free(chop->output, FALSE);
size_t len = chop->output->len;
char *str = g_string_free(chop->output, FALSE);
str_init_len(ret, str, len);
chop->output = NULL;
}
sdp_chopper_destroy(chop);

Loading…
Cancel
Save