another fileman mime config leak

SVN revision: 80864
This commit is contained in:
Mike Blumenkrantz 2012-12-13 14:20:06 +00:00
parent 1f9e621fca
commit 4449f72f85
1 changed files with 10 additions and 3 deletions

View File

@ -423,12 +423,18 @@ _fill_types(E_Config_Dialog_Data *cfdata)
{
Config_Type *tmp;
Eina_List *ll;
char *tok;
char *tok, *str;
int found = 0;
if (!m) continue;
tok = strtok(strdup(m->mime), "/");
if (!tok) continue;
str = strdup(m->mime);
if (!str) continue;
tok = strtok(str, "/");
if (!tok)
{
free(str);
continue;
}
EINA_LIST_FOREACH(types, ll, tmp)
{
@ -450,6 +456,7 @@ _fill_types(E_Config_Dialog_Data *cfdata)
types = eina_list_append(types, tmp);
}
free(str);
}
}