forked from enlightenment/enlightenment
simplify xkbswitch rule parsing, ensure resource freeing
ref 0fd251c437
CID 1368345
This commit is contained in:
parent
671f881e42
commit
97f1c83712
|
@ -290,15 +290,9 @@ parse_rules(void)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (i < (sizeof(grplabels) / sizeof(grplabels[0]))) continue;
|
||||
optmisc = eina_list_append(optmisc, option);
|
||||
if (i >= EINA_C_ARRAY_LENGTH(grplabels))
|
||||
optmisc = eina_list_append(optmisc, option);
|
||||
}
|
||||
else
|
||||
{
|
||||
free(tmp);
|
||||
continue;
|
||||
}
|
||||
|
||||
free(tmp);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue