[scaled-font] Make cairo_debug_reset_static_data() work again

I broke it in a5983929f8
This commit is contained in:
Behdad Esfahbod 2008-12-26 00:05:19 -05:00
parent 730ed68ec1
commit 5c201ef5cf
3 changed files with 6 additions and 3 deletions

View file

@ -61,6 +61,8 @@ cairo_debug_reset_static_data (void)
{
CAIRO_MUTEX_INITIALIZE ();
_cairo_scaled_font_map_destroy ();
_cairo_toy_font_face_reset_static_data ();
#if CAIRO_HAS_FT_FONT

View file

@ -352,7 +352,7 @@ _cairo_scaled_font_map_unlock (void)
CAIRO_MUTEX_UNLOCK (_cairo_scaled_font_map_mutex);
}
static void
void
_cairo_scaled_font_map_destroy (void)
{
cairo_scaled_font_map_t *font_map;
@ -957,8 +957,6 @@ _cairo_scaled_font_reset_static_data (void)
{
int status;
_cairo_scaled_font_map_destroy ();
CAIRO_MUTEX_LOCK (_cairo_scaled_font_error_mutex);
for (status = CAIRO_STATUS_SUCCESS;
status <= CAIRO_STATUS_LAST_STATUS;

View file

@ -1706,6 +1706,9 @@ _cairo_scaled_glyph_lookup (cairo_scaled_font_t *scaled_font,
cairo_private double
_cairo_scaled_font_get_max_scale (cairo_scaled_font_t *scaled_font);
cairo_private void
_cairo_scaled_font_map_destroy (void);
/* cairo-stroke-style.c */
cairo_private void