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:
Chris Michael 2013-08-05 12:32:00 +01:00
parent 24413bd7ee
commit da275a76b1
1 changed files with 1 additions and 1 deletions

View File

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