simplify xkbswitch rule parsing, ensure resource freeing

ref 0fd251c437

CID 1368345
This commit is contained in:
Mike Blumenkrantz 2017-02-10 17:23:43 -05:00
parent 671f881e42
commit 97f1c83712
1 changed files with 2 additions and 8 deletions

View File

@ -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