From 1390f65beb6e723fa6afa794d280d7b8087da10c Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Mon, 6 Jul 2015 14:18:36 +0900 Subject: [PATCH] Evas gl_common: Fix up error handling --- src/modules/evas/engines/gl_common/evas_gl_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_texture.c b/src/modules/evas/engines/gl_common/evas_gl_texture.c index 569a28a..b54f650 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_texture.c +++ b/src/modules/evas/engines/gl_common/evas_gl_texture.c @@ -742,7 +742,7 @@ _pool_tex_dynamic_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, i case GL_RGBA: buffer_format = TBM_FORMAT_RGBA8888; break; case GL_BGRA: buffer_format = TBM_FORMAT_BGRA8888; break; case GL_RGB: buffer_format = TBM_FORMAT_RGB888; break; - default: ERR("TBM: unknown format"); return NULL; + default: ERR("TBM: unknown format"); goto error; } pt->dyn.buffer = (void *)secsym_tbm_surface_create(pt->w, pt->h, -- 2.7.4