diff options
author | Wonki Kim <wonki_.kim@samsung.com> | 2020-08-05 06:35:10 +0000 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2020-08-05 10:47:15 +0200 |
commit | e4651d8fe5518faa1acf145b1570ceaee4eac39d (patch) | |
tree | d303583edc59ca4319691666c6851f4c9f7cb392 /src/lib/efl_canvas_wl | |
parent | efdd1b166e7d0bdd565b00f8acd257ef0bf8531f (diff) | |
download | efl-e4651d8fe5518faa1acf145b1570ceaee4eac39d.tar.gz |
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
Diffstat (limited to 'src/lib/efl_canvas_wl')
-rw-r--r-- | src/lib/efl_canvas_wl/efl_canvas_wl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/efl_canvas_wl/efl_canvas_wl.c b/src/lib/efl_canvas_wl/efl_canvas_wl.c index 6430ff84a0..15f5c255b2 100644 --- a/src/lib/efl_canvas_wl/efl_canvas_wl.c +++ b/src/lib/efl_canvas_wl/efl_canvas_wl.c @@ -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); |