summaryrefslogtreecommitdiff
path: root/src/cairo-hash.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-hash.c
parent587dff8a7191e7e2e4c6778b58af5dc16e39bf3f (diff)
downloadcairo-56d84bb85677df147063f2bc8eef583a6bdd5cae.tar.gz
Fix missing cairo_ft_font_unlock_face().
Fix problem when no entry could be found.
Diffstat (limited to 'src/cairo-hash.c')
-rw-r--r--src/cairo-hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-hash.c b/src/cairo-hash.c
index 8cf432a24..d1ad5a4e2 100644
--- a/src/cairo-hash.c
+++ b/src/cairo-hash.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