useless evas_list_free()'s

SVN revision: 35835
This commit is contained in:
Carsten Haitzler 2008-09-05 02:12:41 +00:00
parent b3f35f4d47
commit 5c27fc21a0
1 changed files with 7 additions and 10 deletions

View File

@ -142,7 +142,6 @@ _fill_data(E_Config_Dialog_Data *cfdata)
if (!ecore_file_is_dir(epd->dir)) continue; if (!ecore_file_is_dir(epd->dir)) continue;
_load_modules(epd->dir); _load_modules(epd->dir);
} }
if (l) evas_list_free(l);
if (mdirs) e_path_dir_list_free(mdirs); if (mdirs) e_path_dir_list_free(mdirs);
} }
@ -317,12 +316,8 @@ _fill_list(Evas_Object *obj, int enabled)
} }
if (l) count = evas_list_count(l); if (l) count = evas_list_count(l);
if (count < 1) else continue;
{
if (l) evas_list_free(l);
continue;
}
/* We have at least one, append header */ /* We have at least one, append header */
e_widget_ilist_header_append(obj, NULL, cft->name); e_widget_ilist_header_append(obj, NULL, cft->name);
@ -332,7 +327,11 @@ _fill_list(Evas_Object *obj, int enabled)
_list_widget_load(obj, l); _list_widget_load(obj, l);
if (l) evas_list_free(l); if (l)
{
evas_list_free(l);
l = NULL;
}
} }
} }
@ -446,7 +445,6 @@ _list_widget_load(Evas_Object *obj, Evas_List *list)
else if (mod->short_name) else if (mod->short_name)
e_widget_ilist_append(obj, ic, mod->short_name, NULL, mod, NULL); e_widget_ilist_append(obj, ic, mod->short_name, NULL, mod, NULL);
} }
if (ml) evas_list_free(ml);
} }
static void static void
@ -552,7 +550,6 @@ _select_all_modules(Evas_Object *obj, void *data)
e_widget_textblock_markup_set(cfdata->o_desc, e_widget_textblock_markup_set(cfdata->o_desc,
_("Description: Unavailable")); _("Description: Unavailable"));
} }
if (l) evas_list_free(l);
} }
static void static void