Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
2d957848
by Alexei Podtelezhnikov at 2021-05-06T22:49:13-04:00
-
998c7c0f
by Alexei Podtelezhnikov at 2021-05-06T22:51:37-04:00
-
44c59414
by Alexei Podtelezhnikov at 2021-05-06T22:54:03-04:00
4 changed files:
Changes:
1 |
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
2 |
+ |
|
3 |
+ * src/sfnt/sfobjs.c (sfnt_load_face): Tweak allocation macro.
|
|
4 |
+ |
|
5 |
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
6 |
+ |
|
7 |
+ * src/cid/cidload.c (cid_read_subrs): Tweak allocation macro.
|
|
8 |
+ |
|
9 |
+2021-05-06 Alexei Podtelezhnikov <apodtele@gmail.com>
|
|
10 |
+ |
|
11 |
+ * src/base/ftrfork.c (FT_Raccess_Get_DataOffsets): Tweak allocation.
|
|
12 |
+ |
|
1 | 13 |
2021-05-05 Alexei Podtelezhnikov <apodtele@gmail.com>
|
2 | 14 |
|
3 | 15 |
[cff,psaux] Avoid memory zeroing (contd.).
|
... | ... | @@ -251,7 +251,7 @@ |
251 | 251 |
if ( error )
|
252 | 252 |
return error;
|
253 | 253 |
|
254 |
- if ( FT_NEW_ARRAY( ref, *count ) )
|
|
254 |
+ if ( FT_QNEW_ARRAY( ref, *count ) )
|
|
255 | 255 |
return error;
|
256 | 256 |
|
257 | 257 |
for ( j = 0; j < *count; j++ )
|
... | ... | @@ -552,7 +552,7 @@ |
552 | 552 |
goto Fail;
|
553 | 553 |
}
|
554 | 554 |
|
555 |
- if ( FT_RENEW_ARRAY( offsets, max_offsets, new_max ) )
|
|
555 |
+ if ( FT_QRENEW_ARRAY( offsets, max_offsets, new_max ) )
|
|
556 | 556 |
goto Fail;
|
557 | 557 |
|
558 | 558 |
max_offsets = new_max;
|
... | ... | @@ -1237,7 +1237,7 @@ |
1237 | 1237 |
}
|
1238 | 1238 |
|
1239 | 1239 |
/* reduce array size to the actually used elements */
|
1240 |
- (void)FT_RENEW_ARRAY( sbit_strike_map, count, bsize_idx );
|
|
1240 |
+ (void)FT_QRENEW_ARRAY( sbit_strike_map, count, bsize_idx );
|
|
1241 | 1241 |
|
1242 | 1242 |
/* from now on, all strike indices are mapped */
|
1243 | 1243 |
/* using `sbit_strike_map' */
|