summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-08 18:52:08 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-08 18:52:08 +0000
commit0d38518c38fec68a1fa8cf9d3ae946faa08d6c42 (patch)
tree355f2706f1b7f65deba147309afd6f592a2a9dec
parente4acba6d1ddfe1c6d27b5a77edccea9d69b178f8 (diff)
downloadcairo-0d38518c38fec68a1fa8cf9d3ae946faa08d6c42.tar.gz
scaled-font: Remove a non-threadsafe double-freeze assert
Sadly we cannot check ahead of acquiring the lock whether we hold the lock. Just have to rely on lockdep. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/cairo-scaled-font.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index e61c1cac9..46a9c4d77 100644
--- a/src/cairo-scaled-font.c
+++ b/src/cairo-scaled-font.c
@@ -786,7 +786,6 @@ _cairo_scaled_font_freeze_cache (cairo_scaled_font_t *scaled_font)
{
/* ensure we do not modify an error object */
assert (scaled_font->status == CAIRO_STATUS_SUCCESS);
- assert (! scaled_font->cache_frozen);
CAIRO_MUTEX_LOCK (scaled_font->mutex);
scaled_font->cache_frozen = TRUE;