elm_image: return EINA_FALSE if the data source is NULL in elm_image_memfile_set

@fix
This commit is contained in:
Jaeun Choi 2015-04-10 18:31:58 +09:00
parent 43846e863d
commit 62f95be91c
1 changed files with 2 additions and 0 deletions

View File

@ -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