diff options
author | Jaeun Choi <jaeun12.choi@samsung.com> | 2015-04-10 18:31:58 +0900 |
---|---|---|
committer | Jaeun Choi <jaeun12.choi@samsung.com> | 2015-04-10 18:31:58 +0900 |
commit | ee7d5425628942a45e23a2cb6be253db8ec0b3fd (patch) | |
tree | f8db916f653c856e932e62beec9048a1dc3aa302 | |
parent | 600e0328adfb019585fd8bdec0483f2b016b5cbf (diff) | |
download | elementary-ee7d5425628942a45e23a2cb6be253db8ec0b3fd.tar.gz |
elm_image: return EINA_FALSE if the data source is NULL in elm_image_memfile_set
@fix
-rw-r--r-- | src/lib/elm_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c index f04cd4914..b0db368bb 100644 --- a/src/lib/elm_image.c +++ b/src/lib/elm_image.c @@ -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 |