Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
8b6bcc92
by Alexei Podtelezhnikov at 2022-06-12T09:04:13-04:00
1 changed file:
Changes:
... | ... | @@ -2004,7 +2004,8 @@ |
2004 | 2004 | |
2005 | 2005 | FT_TRACE4(( "Number of fonts in TTC: %d\n", woff2.num_fonts ));
|
2006 | 2006 | |
2007 | - if ( FT_QNEW_ARRAY( woff2.ttc_fonts, woff2.num_fonts ) )
|
|
2007 | + /* pre-zero pointers within in case of failure */
|
|
2008 | + if ( FT_NEW_ARRAY( woff2.ttc_fonts, woff2.num_fonts ) )
|
|
2008 | 2009 | goto Exit;
|
2009 | 2010 | |
2010 | 2011 | for ( nn = 0; nn < woff2.num_fonts; nn++ )
|