mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-15 19:48:41 +02:00
Merge branch 'fix-issue-587' into 'master'
Check for cache not frozen in glyph_page_can_remove() Closes #587 See merge request cairo/cairo!355
This commit is contained in:
commit
a7d31a8714
1 changed files with 10 additions and 1 deletions
|
|
@ -2703,7 +2703,16 @@ _cairo_scaled_glyph_page_can_remove (const void *closure)
|
|||
cairo_scaled_font_t *scaled_font;
|
||||
|
||||
scaled_font = page->scaled_font;
|
||||
return CAIRO_MUTEX_TRY_LOCK (scaled_font->mutex);
|
||||
|
||||
if (!CAIRO_MUTEX_TRY_LOCK (scaled_font->mutex))
|
||||
return FALSE;
|
||||
|
||||
if (scaled_font->cache_frozen != 0) {
|
||||
CAIRO_MUTEX_UNLOCK (scaled_font->mutex);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static cairo_status_t
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue