evas cache - avoid possible deref of null pointer

this fixes CID 1267472
This commit is contained in:
Carsten Haitzler 2016-07-11 22:06:16 +09:00
parent 2d003e2503
commit 2b413d3f87
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ evas_cache2_image_scale_load(Image_Entry *im,
error = evas_cache2_image_load_data(ret);
if (error != EVAS_LOAD_ERROR_NONE)
{
_evas_cache2_image_entry_delete(im->cache2, ret);
if (ret) _evas_cache2_image_entry_delete(im->cache2, ret);
goto parent_out;
}