forked from minhngoc25a/freetype2
[pfr] Avoid some memory zeroing.
* src/pfr/pfrobjs.c (pfr_face_init) : Tweak memory macro. * src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps, pfr_phy_font_load): Ditto.
This commit is contained in:
parent
b0a281974d
commit
618d0834c7
|
@ -1,3 +1,11 @@
|
|||
2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
[pfr] Avoid some memory zeroing.
|
||||
|
||||
* src/pfr/pfrobjs.c (pfr_face_init) : Tweak memory macro.
|
||||
* src/pfr/pfrload.c (pfr_extra_item_load_stem_snaps,
|
||||
pfr_phy_font_load): Ditto.
|
||||
|
||||
2021-04-26 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
* src/winfonts/winfnt.c (FNT_Face_Init): Tweak memory macro.
|
||||
|
|
|
@ -601,7 +601,7 @@
|
|||
|
||||
PFR_CHECK( count * 2 );
|
||||
|
||||
if ( FT_NEW_ARRAY( snaps, count ) )
|
||||
if ( FT_QNEW_ARRAY( snaps, count ) )
|
||||
goto Exit;
|
||||
|
||||
phy_font->vertical.stem_snaps = snaps;
|
||||
|
@ -953,7 +953,7 @@
|
|||
|
||||
PFR_CHECK( count * 2 );
|
||||
|
||||
if ( FT_NEW_ARRAY( phy_font->blue_values, count ) )
|
||||
if ( FT_QNEW_ARRAY( phy_font->blue_values, count ) )
|
||||
goto Fail;
|
||||
|
||||
for ( n = 0; n < count; n++ )
|
||||
|
|
|
@ -213,7 +213,7 @@
|
|||
FT_Memory memory = pfrface->stream->memory;
|
||||
|
||||
|
||||
if ( FT_NEW_ARRAY( pfrface->available_sizes, count ) )
|
||||
if ( FT_QNEW_ARRAY( pfrface->available_sizes, count ) )
|
||||
goto Exit;
|
||||
|
||||
size = pfrface->available_sizes;
|
||||
|
|
Loading…
Reference in New Issue