From db87e65a6aed2d502be0ba3909b4130fb6cf0f13 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Tue, 1 Aug 2017 14:00:54 +0900 Subject: [PATCH] [evas] fix svace issue WGID: 170018, 170891, 170892, 200149, 258324, 258326 258612, 258685, 259918, 265106 Change-Id: I68558eb8b773f4114d313b2bcde5443f4e20d266 --- src/modules/evas/engines/gl_common/evas_gl_api.c | 2 +- src/modules/evas/engines/software_tbm/evas_outbuf.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_api.c b/src/modules/evas/engines/gl_common/evas_gl_api.c index 518974f..e490e7a 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_api.c +++ b/src/modules/evas/engines/gl_common/evas_gl_api.c @@ -1355,7 +1355,7 @@ _evgl_glGetIntegerv(GLenum pname, GLint* params) } else if (ctx->version == EVAS_GL_GLES_3_X) { - if (pname == GL_DRAW_FRAMEBUFFER_BINDING || pname == GL_FRAMEBUFFER_BINDING) + if (pname == GL_DRAW_FRAMEBUFFER_BINDING) { *params = ctx->current_draw_fbo; return; diff --git a/src/modules/evas/engines/software_tbm/evas_outbuf.c b/src/modules/evas/engines/software_tbm/evas_outbuf.c index 3c4b389..7a267c1 100644 --- a/src/modules/evas/engines/software_tbm/evas_outbuf.c +++ b/src/modules/evas/engines/software_tbm/evas_outbuf.c @@ -71,6 +71,7 @@ _tbm_surface_evas_buffer_info_get(tbm_surface_h surface, Eina_Bool *is_first) ERR("fail to evas_cache_image_data()"); ebuf_info = calloc(1, sizeof(evas_buffer_info)); + if (!ebuf_info) return NULL; ebuf_info->im = img; ebuf_info->tbm_surface = surface; tbm_surface_internal_set_user_data(surface, KEY_EVAS_BUFFER, ebuf_info); -- 2.7.4