forked from enlightenment/efl
elm_image: return EINA_FALSE if the data source is NULL in elm_image_memfile_set
@fix
This commit is contained in:
parent
43846e863d
commit
62f95be91c
|
@ -887,6 +887,8 @@ _elm_image_file_set_do(Evas_Object *obj)
|
|||
EOLIAN static Eina_Bool
|
||||
_elm_image_memfile_set(Eo *obj, Elm_Image_Data *sd, const void *img, size_t size, const char *format, const char *key)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN_VAL(img, EINA_FALSE);
|
||||
|
||||
_elm_image_file_set_do(obj);
|
||||
|
||||
evas_object_image_memfile_set
|
||||
|
|
Loading…
Reference in New Issue