forked from enlightenment/efl
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:
parent
6d31f5c7fd
commit
897d81acb1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue