* src/pgtkterm.c (pgtk_enqueue_string): Free return of g_utf8_to_ucs4.

This commit is contained in:
Po Lu 2022-01-08 11:18:59 +08:00
parent 9bb71f8236
commit 63c83e40da

View file

@ -5231,9 +5231,9 @@ pgtk_emacs_to_gtk_modifiers (struct pgtk_display_info *dpyinfo, int state)
void
pgtk_enqueue_string (struct frame *f, gchar * str)
{
gunichar *ustr;
gunichar *ustr, *uptr;
ustr = g_utf8_to_ucs4 (str, -1, NULL, NULL, NULL);
uptr = ustr = g_utf8_to_ucs4 (str, -1, NULL, NULL, NULL);
if (ustr == NULL)
return;
for (; *ustr != 0; ustr++)
@ -5252,6 +5252,7 @@ pgtk_enqueue_string (struct frame *f, gchar * str)
evq_enqueue (&inev);
}
g_free (uptr);
}
void