Use list_remove_list as we already have the node we want, and break

afterward as we don't need to keep iterating. Thanks raster :)


SVN revision: 26936
This commit is contained in:
Christopher Michael 2006-11-04 02:04:39 +00:00
parent e0c01fd739
commit 234a112b3e
1 changed files with 3 additions and 1 deletions

View File

@ -281,7 +281,9 @@ _cb_confirm_yes(void *data)
evas_stringshare_del(mi->mime);
if (mi->icon)
evas_stringshare_del(mi->icon);
e_config->mime_icons = evas_list_remove(e_config->mime_icons, mi);
e_config->mime_icons = evas_list_remove_list(e_config->mime_icons,
e_config->mime_icons);
break;
}
_fill_data(cfdata);
_fill_list(cfdata);