Evas.Image: Add NULL check before calling engine function

This commit is contained in:
Jean-Philippe Andre 2016-03-29 15:07:20 +09:00
parent a5b89d8ab3
commit c41bae817c
1 changed files with 6 additions and 3 deletions

View File

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