summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-09-03 15:53:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:15 +0900
commitbfe3fe27df9384642d8f3b277ec694c9d42fc0c9 (patch)
tree13a9a97a7e56763e98769b2b11559973242b84d1
parent31a5bfb46427265cd0537c0e61146a4960b7f557 (diff)
evas: Fix potential crash after image preload
E17 crashed when running under cserve2. Not sure about this commit. Also what about the other functions.
-rw-r--r--src/lib/evas/canvas/evas_object_inform.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_object_inform.c b/src/lib/evas/canvas/evas_object_inform.c
index c4aa8e1..28ff355 100644
--- a/src/lib/evas/canvas/evas_object_inform.c
+++ b/src/lib/evas/canvas/evas_object_inform.c
@@ -66,6 +66,8 @@ void
66evas_object_inform_call_image_preloaded(Evas_Object *eo_obj) 66evas_object_inform_call_image_preloaded(Evas_Object *eo_obj)
67{ 67{
68 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJ_CLASS); 68 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJ_CLASS);
69 EINA_SAFETY_ON_NULL_RETURN(obj);
70
69 if (!_evas_object_image_preloading_get(eo_obj)) return; 71 if (!_evas_object_image_preloading_get(eo_obj)) return;
70 _evas_object_image_preloading_check(eo_obj); 72 _evas_object_image_preloading_check(eo_obj);
71 _evas_object_image_preloading_set(eo_obj, 0); 73 _evas_object_image_preloading_set(eo_obj, 0);