label: Plug a potential memory leak

This only happens in error cases so pretty insignificant.

Found by scan-build
This commit is contained in:
Timm Bäder 2020-10-15 06:06:43 +02:00
parent 3a1e019e83
commit c7dbb8ef91

View File

@ -2337,7 +2337,10 @@ no_uline:
char *text_for_accel;
if (!pango_parse_markup (str_for_display, -1, 0, NULL, &text_for_accel, NULL, &error))
goto error_set;
{
g_free (new_text);
goto error_set;
}
extract_mnemonic_keyval (text_for_accel,
NULL,