efl/engines: fix null derefs

Summary: CIDs 1402640, 1402709

Reviewers: cedric

Reviewed By: cedric

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10448
This commit is contained in:
Mike Blumenkrantz 2019-10-18 13:29:44 -04:00
parent ebcafd4249
commit 7a122db342
2 changed files with 2 additions and 0 deletions

View File

@ -236,6 +236,7 @@ _ecore_evas_wayland_window_update(Ecore_Evas *ee, Ecore_Evas_Engine_Wl_Data *wda
int fullw, fullh;
einfo = (Evas_Engine_Info_Wayland *)evas_engine_info_get(ee->evas);
EINA_SAFETY_ON_NULL_RETURN(einfo);
change = ee->shadow.changed || (new_alpha != ee->alpha);
ee->alpha = new_alpha;

View File

@ -1359,6 +1359,7 @@ eng_image_native_set(void *engine, void *image, void *native)
}
}
if (!img) return NULL;
img2 = glsym_evas_gl_common_image_new_from_data(ob->gl_context, img->w,
img->h, NULL, img->alpha,
EVAS_COLORSPACE_ARGB8888);