Register buffer vars in Indic shaper

This commit is contained in:
Behdad Esfahbod 2011-07-28 17:06:46 -04:00
parent be09bf6b79
commit 9f9bcceca6
2 changed files with 8 additions and 0 deletions

View File

@ -287,6 +287,9 @@ final_reordering (const hb_ot_map_t *map,
hb_buffer_t *buffer,
void *user_data HB_UNUSED)
{
HB_BUFFER_DEALLOCATE_VAR (buffer, indic_category);
HB_BUFFER_DEALLOCATE_VAR (buffer, indic_position);
}
void
@ -331,6 +334,9 @@ _hb_ot_shape_complex_setup_masks_indic (hb_ot_map_t *map, hb_buffer_t *buffer)
{
unsigned int count = buffer->len;
HB_BUFFER_ALLOCATE_VAR (buffer, indic_category);
HB_BUFFER_ALLOCATE_VAR (buffer, indic_position);
for (unsigned int i = 0; i < count; i++)
{
unsigned int type = get_indic_categories (buffer->info[i].codepoint);

View File

@ -396,6 +396,8 @@ hb_ot_shape_execute_internal (hb_ot_shape_context_t *c)
HB_BUFFER_DEALLOCATE_VAR (c->buffer, general_category);
c->buffer->props.direction = c->target_direction;
c->buffer->deallocate_var_all ();
}
static void