summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-14 13:27:11 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-14 13:27:11 +0900
commite64f45a889ad2babf4731163748c10cfbb8c77e2 (patch)
treeaca513553d3177681b80c613516cb4664743c628 /src/modules
parent064690d46e7ed67becf9710588e7c37a31ab807f (diff)
gl image: free the resource properly at the corner case.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/evas/engines/gl_generic/evas_engine.c1
1 files changed, 1 insertions, 0 deletions
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,
932 eng_gl_surface_unlock(engine, im); 932 eng_gl_surface_unlock(engine, im);
933 if (!ok) 933 if (!ok)
934 { 934 {
935 evas_gl_common_image_free(im_new);
935 if (err) *err = EVAS_LOAD_ERROR_GENERIC; 936 if (err) *err = EVAS_LOAD_ERROR_GENERIC;
936 ERR("ReadPixels failed."); 937 ERR("ReadPixels failed.");
937 return NULL; 938 return NULL;