Index: addons/ttf/ttf.c
===================================================================
--- addons/ttf/ttf.c	(revision 15259)
+++ addons/ttf/ttf.c	(working copy)
@@ -574,6 +574,7 @@
       ALLEGRO_TTF_GLYPH_DATA *glyph = get_glyph(data, ft_index);
 
       cache_glyph(data, face, ft_index, glyph, true);
+      unlock_current_page(data);
 
       x += get_kerning(data, face, prev_ft_index, ft_index);
       x += glyph->advance;
@@ -610,7 +611,8 @@
       ALLEGRO_TTF_GLYPH_DATA *glyph = get_glyph(data, ft_index);
 
       cache_glyph(data, face, ft_index, glyph, true);
-
+      unlock_current_page(data);
+      
       if (pos == end) {
          x += glyph->offset_x + glyph->region.w;
       }
