Register buffer vars in Indic shaper
[apps/home/video-player.git] / src / hb-ot-shape-complex-indic.cc
index 494368c..e14b894 100644 (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);