devilhorns pushed a commit to branch master.
commit 28c3b2459354e8b771d3e37cf5d3a58e9b51792d
Author: Chris Michael <[email protected]>
Date: Fri Jun 7 08:15:29 2013 +0100
Fix segfault: Don't try to printf a debug message if we don't have a cache.
Signed-off-by: Chris Michael <[email protected]>
---
src/lib/evas/cache/evas_cache_image.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/evas/cache/evas_cache_image.c
b/src/lib/evas/cache/evas_cache_image.c
index 8f2b6b0..4a92049 100644
--- a/src/lib/evas/cache/evas_cache_image.c
+++ b/src/lib/evas/cache/evas_cache_image.c
@@ -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)
{
--
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j