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
devs/lauromoura/property_revamp
Mike Blumenkrantz 4 years ago
parent ebcafd4249
commit 7a122db342
  1. 1
      src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
  2. 1
      src/modules/evas/engines/gl_drm/evas_engine.c

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

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

Loading…
Cancel
Save