Fix segfault: Don't try to printf a debug message if we don't have a cache.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-07 08:15:29 +01:00
parent a4dea5a0cb
commit 28c3b24593
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ _evas_cache_image_entry_delete(Evas_Cache_Image *cache, Image_Entry *ie)
Image_Entry_Task *task;
if (!ie) return;
if (cache->func.debug) cache->func.debug("deleting", ie);
if ((cache) && (cache->func.debug)) cache->func.debug("deleting", ie);
if (ie->flags.delete_me == 1) return;
if (ie->preload)
{