forked from enlightenment/efl
evas: Fix potential crash after image preload
E17 crashed when running under cserve2. Not sure about this commit. Also what about the other functions.
This commit is contained in:
parent
31a5bfb464
commit
bfe3fe27df
|
@ -66,6 +66,8 @@ void
|
||||||
evas_object_inform_call_image_preloaded(Evas_Object *eo_obj)
|
evas_object_inform_call_image_preloaded(Evas_Object *eo_obj)
|
||||||
{
|
{
|
||||||
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJ_CLASS);
|
Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJ_CLASS);
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(obj);
|
||||||
|
|
||||||
if (!_evas_object_image_preloading_get(eo_obj)) return;
|
if (!_evas_object_image_preloading_get(eo_obj)) return;
|
||||||
_evas_object_image_preloading_check(eo_obj);
|
_evas_object_image_preloading_check(eo_obj);
|
||||||
_evas_object_image_preloading_set(eo_obj, 0);
|
_evas_object_image_preloading_set(eo_obj, 0);
|
||||||
|
|
Loading…
Reference in New Issue