options_wallpaper: Check retrun value of edje_object_file_set
edje_object_file_set can fail. Better check for the return value and act accordingly. CID 1147527
This commit is contained in:
parent
90b3a93698
commit
99869d3dff
|
@ -132,7 +132,11 @@ _grid_content_get(void *data, Evas_Object *obj, const char *part)
|
|||
config->theme);
|
||||
o = elm_layout_add(obj);
|
||||
oe = elm_layout_edje_get(o);
|
||||
edje_object_file_set(oe, path, "terminology/background");
|
||||
if (!edje_object_file_set(oe, path, "terminology/background"))
|
||||
{
|
||||
evas_object_del(o);
|
||||
return NULL;
|
||||
}
|
||||
evas_object_show(o);
|
||||
return o;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue