efl_canvas: fix a potentional error of null deref

this is a patch to fix a potentional error by null dereferencing.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D12093
This commit is contained in:
Wonki Kim 2020-08-05 06:35:10 +00:00 committed by Marcel Hollerbach
parent efdd1b166e
commit e4651d8fe5
1 changed files with 1 additions and 0 deletions

View File

@ -4170,6 +4170,7 @@ static void
comp_render_pre_proxied(Eo *o, Evas *e, void *event_info)
{
Comp_Surface *cs = evas_object_data_get(o, "comp_surface");
EINA_SAFETY_ON_NULL_RETURN(cs);
Comp_Buffer *buffer = cs->buffer[!cs->render_queue];
//fprintf(stderr, "PROXY RENDER_PRE %d\n", buffer ? wl_resource_get_id(buffer->res) : -1);