hermet pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=794792aacbbf0f693ef9178cb71db16547214ff8

commit 794792aacbbf0f693ef9178cb71db16547214ff8
Author: Ali Alzyod <ali198...@gmail.com>
Date:   Tue Mar 10 11:41:57 2020 +0900

    evas_gl_font: free data paths if alloca fails
    
    Reviewers: Hermet, woohyun, bu5hm4n, zmike
    
    Reviewed By: Hermet
    
    Subscribers: cedric, #reviewers, #committers
    
    Tags: #efl
    
    Differential Revision: https://phab.enlightenment.org/D11473
---
 src/modules/evas/engines/gl_common/evas_gl_font.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/evas/engines/gl_common/evas_gl_font.c 
b/src/modules/evas/engines/gl_common/evas_gl_font.c
index b7bd643756..52e4d4e4a9 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_font.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_font.c
@@ -4,7 +4,7 @@ void *
 evas_gl_font_texture_new(void *context, RGBA_Font_Glyph *fg)
 {
    Evas_Engine_GL_Context *gc = context;
-   Evas_GL_Texture *tex;
+   Evas_GL_Texture *tex = NULL;
    int w, h, nw, fh, y;
    DATA8 *ndata, *data, *p1, *p2;
 
@@ -25,7 +25,7 @@ evas_gl_font_texture_new(void *context, RGBA_Font_Glyph *fg)
       ndata = data;
    } else {
       ndata = alloca(nw *h);
-      if (!ndata) return NULL;
+      if (!ndata) goto done;
       // else copy row by row
       for (y = 0; y < h; y++)
       {

-- 


Reply via email to