replace str->str & g_string_free with g_string_free_and_steal

solving unused warning in GLib 2.76
This commit is contained in:
Ailin Nemui 2025-07-22 11:40:04 +02:00
commit 8eee36d1ea
20 changed files with 73 additions and 78 deletions

View file

@ -239,9 +239,8 @@ char *perl_get_use_list(void)
for (tmp = use_protocols; tmp != NULL; tmp = tmp->next)
g_string_append_printf(str, "use Irssi::%s;", (char *) tmp->data);
ret = str->str;
g_string_free(str, FALSE);
return ret;
ret = g_string_free_and_steal(str);
return ret;
}
void irssi_callXS(void (*subaddr)(pTHX_ CV* cv), CV *cv, SV **mark)