account for image load failures in eet loader

This commit is contained in:
zmike 2014-02-09 16:30:25 -05:00
parent 9d5059147d
commit 51dc7ed104
1 changed files with 7 additions and 2 deletions

View File

@ -46,7 +46,11 @@ _loader_fetch(Empc_Fetch_Request *req)
{
o = elm_image_add(req->obj);
elm_image_fill_outside_set(o, EINA_FALSE);
elm_image_file_set(o, eet_file_get(ef_img), buf);
if (!elm_image_file_set(o, eet_file_get(ef_img), buf))
{
evas_object_del(o);
o = NULL;
}
}
else
{
@ -57,7 +61,8 @@ _loader_fetch(Empc_Fetch_Request *req)
elm_entry_entry_set(o, txt);
free(txt);
}
empc_metadata_fetch_done(req, o);
if (o)
empc_metadata_fetch_done(req, o);
}
empc_metadata_fetch_done(req, NULL);
}