forked from enlightenment/efl
Check for Image_Entry being valid before calling evas_cache_image_drop.
NB: Image_Entry passed in to this function Could be NULL (hence the previous if ie check above. Do not call evas_cache_image_drop on a NULL Image_Entry as evas_cache_image_drop does not validity checking. Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
24413bd7ee
commit
da275a76b1
|
@ -117,7 +117,7 @@ _evas_cache_engine_image_alloc(Evas_Cache_Engine_Image *cache,
|
|||
if (eim)
|
||||
evas_cache_engine_image_drop(eim);
|
||||
eina_stringshare_del(hkey);
|
||||
evas_cache_image_drop(ie);
|
||||
if (ie) evas_cache_image_drop(ie);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue