diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-02-09 16:41:07 +0000 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2022-02-09 16:41:07 +0000 |
commit | 1680885aa57f192a4ddad6ddd70521f4fe013db0 (patch) | |
tree | 3026b3460f609c950ddac4203eb7cf66430d6dbc /src | |
parent | 0447df71e749e54a6895180303780bdaa84038fd (diff) | |
download | freetype2-1680885aa57f192a4ddad6ddd70521f4fe013db0.tar.gz |
[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.
Diffstat (limited to 'src')
-rw-r--r-- | src/pshinter/pshrec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pshinter/pshrec.c b/src/pshinter/pshrec.c index e91f5d5ee..2a5cffbad 100644 --- a/src/pshinter/pshrec.c +++ b/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: |