forked from AuroraMiddleware/gtk
label: Plug a potential memory leak
This only happens in error cases so pretty insignificant. Found by scan-build
This commit is contained in:
parent
3a1e019e83
commit
c7dbb8ef91
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user