hermet pushed a commit to branch master.

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

commit e64f45a889ad2babf4731163748c10cfbb8c77e2
Author: Hermet Park <hermetp...@gmail.com>
Date:   Fri Feb 14 13:27:11 2020 +0900

    gl image: free the resource properly at the corner case.
---
 src/modules/evas/engines/gl_generic/evas_engine.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/modules/evas/engines/gl_generic/evas_engine.c 
b/src/modules/evas/engines/gl_generic/evas_engine.c
index 5514b7d97d..4ae962a48c 100644
--- a/src/modules/evas/engines/gl_generic/evas_engine.c
+++ b/src/modules/evas/engines/gl_generic/evas_engine.c
@@ -932,6 +932,7 @@ eng_image_data_get(void *engine, void *image, int to_write, 
DATA32 **image_data,
         eng_gl_surface_unlock(engine, im);
         if (!ok)
           {
+             evas_gl_common_image_free(im_new);
              if (err) *err = EVAS_LOAD_ERROR_GENERIC;
              ERR("ReadPixels failed.");
              return NULL;

-- 


Reply via email to