forked from enlightenment/efl
Evas.Image: Add NULL check before calling engine function
This commit is contained in:
parent
a5b89d8ab3
commit
c41bae817c
|
@ -589,10 +589,13 @@ _image_pixels_set(Evas_Object_Protected_Data *obj,
|
|||
|
||||
// FIXME: buffer border support is not implemented
|
||||
|
||||
if (ENFN->image_data_maps_get(ENDT, o->engine_data, NULL, NULL) > 0)
|
||||
if (ENFN->image_data_maps_get)
|
||||
{
|
||||
ERR("can not set pixels when there are open memory maps");
|
||||
return EINA_FALSE;
|
||||
if (ENFN->image_data_maps_get(ENDT, o->engine_data, NULL, NULL) > 0)
|
||||
{
|
||||
ERR("can not set pixels when there are open memory maps");
|
||||
return EINA_FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
if (o->pixels_checked_out)
|
||||
|
|
Loading…
Reference in New Issue