[pshinter] Clear reused mask.

In PS hinter, memory allocations persist until the module is done.
Therefore, we have to clear reused masks.

* src/pshinter/pshrec.c (ps_mask_table_alloc): Clear reused mask.
1100-sdf-improvements
Alexei Podtelezhnikov 3 years ago
parent 0447df71e7
commit 1680885aa5
  1. 4
      src/pshinter/pshrec.c

@ -249,6 +249,10 @@
mask = table->masks + count - 1;
mask->num_bits = 0;
mask->end_point = 0;
/* reused mask must be cleared */
if ( mask->max_bits )
FT_MEM_ZERO( mask->bytes, mask->max_bits >> 3 );
table->num_masks = count;
Exit:

Loading…
Cancel
Save