evas engine gl: Add missing image unlock

This is a rare error path. Unlikely and not very important as
the lock/unlock doesn't actually perform any meaningful operation.
This commit is contained in:
Jean-Philippe Andre 2017-07-19 13:19:24 +09:00
parent 6d31f5c7fd
commit 897d81acb1
1 changed files with 1 additions and 0 deletions

View File

@ -831,6 +831,7 @@ eng_image_data_get(void *engine, void *image, int to_write, DATA32 **image_data,
eng_image_alpha_get(engine, image), EVAS_COLORSPACE_ARGB8888);
if (!im_new)
{
eng_gl_surface_unlock(engine, im);
if (err) *err = EVAS_LOAD_ERROR_RESOURCE_ALLOCATION_FAILED;
ERR("Allocation failed.");
return NULL;