From baa9ebbbbbde97027a5c6bdfebab1e9f0667cb94 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Wed, 21 Sep 2016 16:55:47 +0900 Subject: [PATCH] evas software engine: ++safey code Change-Id: I430cc0c065579a21349c87c64d499c08f5f5ad47 --- src/modules/evas/engines/software_generic/evas_engine.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/evas/engines/software_generic/evas_engine.c b/src/modules/evas/engines/software_generic/evas_engine.c index c8d36aa..f95e9f2 100644 --- a/src/modules/evas/engines/software_generic/evas_engine.c +++ b/src/modules/evas/engines/software_generic/evas_engine.c @@ -3958,6 +3958,8 @@ eng_ector_surface_cache_set(void *data, void *key, void *surface) int count; _ector_surface_cache_init(); surface_data = calloc(1, sizeof(Ector_Surface_Data)); + if (!surface_data) return; + surface_data->key = key; surface_data->surface = surface; surface_data->output = data; -- 2.7.4