summaryrefslogtreecommitdiff
path: root/src/cairo-cache.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-02-03 15:24:35 +0000
committerOwen Taylor <otaylor@redhat.com>2005-02-03 15:24:35 +0000
commit56d84bb85677df147063f2bc8eef583a6bdd5cae (patch)
tree22cab43e81f73a66617e997bbb7e01cd11e010f6 /src/cairo-cache.c
parent587dff8a7191e7e2e4c6778b58af5dc16e39bf3f (diff)
Fix missing cairo_ft_font_unlock_face().
Fix problem when no entry could be found.
Diffstat (limited to 'src/cairo-cache.c')
-rw-r--r--src/cairo-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-cache.c b/src/cairo-cache.c
index 8cf432a2..d1ad5a4e 100644
--- a/src/cairo-cache.c
+++ b/src/cairo-cache.c
@@ -503,7 +503,7 @@ _cairo_cache_random_entry (cairo_cache_t *cache,
{
cairo_cache_entry_base_t **slot = _random_entry (cache, predicate);
- return *slot;
+ return slot ? *slot : NULL;
}
unsigned long