Evas gl_common: Fix up error handling
authorWooHyun Jung <wh0705.jung@samsung.com>
Thu, 2 Jul 2015 12:54:51 +0000 (21:54 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Thu, 2 Jul 2015 12:54:51 +0000 (21:54 +0900)
src/modules/evas/engines/gl_common/evas_gl_texture.c

index 39b97ae..569a28a 100644 (file)
@@ -786,7 +786,7 @@ _pool_tex_dynamic_new(Evas_Engine_GL_Context *gc, int w, int h, int intformat, i
 #endif
            case GL_RGBA: attr[5] = EGL_MAP_GL_TEXTURE_RGBA_SEC; break;
            case GL_BGRA: attr[5] = EGL_MAP_GL_TEXTURE_BGRA_SEC; break;
-           default: ERR("SEC map: unknown format"); return NULL;
+           default: ERR("SEC map: unknown format"); goto error;
           }
 
         attr[1] = pt->w;