fix CID 1360466
we don't actually chekc if efreet inits right with elm_need_efreet()
as we just assume it inits (And there pretty much is no case where it
will not), but make coverity happy and check.
@fix
elm_need_efreet(void)
{
if (_elm_need_efreet) return EINA_TRUE;
+ if (!efreet_init()) return EINA_FALSE;
+ if (!efreet_mime_init())
+ {
+ efreet_shutdown();
+ return EINA_FALSE;
+ }
+ if (!efreet_trash_init())
+ {
+ efreet_mime_shutdown();
+ efreet_shutdown();
+ return EINA_FALSE;
+ }
_elm_need_efreet = EINA_TRUE;
- efreet_init();
- efreet_mime_init();
- efreet_trash_init();
- /*
+ /*
{
Eina_List **list;
*list = eina_list_prepend(*list, (void *)eina_stringshare_add(buf));
}
}
- */
+ */
return EINA_TRUE;
}