Reset cairo_scaled_font_map after freeing.

Along the error path the global font map was freed but not reset,
causing segfaults on any subsequent use of a cairo_scaled_font_t.
This commit is contained in:
Chris Wilson 2007-04-08 22:50:44 +01:00 committed by Carl Worth
parent 65de47d8bc
commit c6055dc349

View file

@ -211,6 +211,7 @@ _cairo_scaled_font_map_lock (void)
CLEANUP_SCALED_FONT_MAP:
free (cairo_scaled_font_map);
cairo_scaled_font_map = NULL;
CLEANUP_MUTEX_LOCK:
CAIRO_MUTEX_UNLOCK (_cairo_scaled_font_map_mutex);
return NULL;