gl image: free the resource properly at the corner case.

This commit is contained in:
Hermet Park 2020-02-14 13:27:11 +09:00
parent 064690d46e
commit e64f45a889
1 changed files with 1 additions and 0 deletions

View File

@ -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;