forked from minhngoc25a/freetype2
* src/lzw/ftlzw.c (FT_Stream_OpenLZW): Avoid unnecessary zeroing.
This commit is contained in:
parent
6ee8951956
commit
ee52b57121
|
@ -344,7 +344,7 @@
|
||||||
{
|
{
|
||||||
FT_Error error;
|
FT_Error error;
|
||||||
FT_Memory memory;
|
FT_Memory memory;
|
||||||
FT_LZWFile zip = NULL;
|
FT_LZWFile zip;
|
||||||
|
|
||||||
|
|
||||||
if ( !stream || !source )
|
if ( !stream || !source )
|
||||||
|
@ -369,7 +369,7 @@
|
||||||
FT_ZERO( stream );
|
FT_ZERO( stream );
|
||||||
stream->memory = memory;
|
stream->memory = memory;
|
||||||
|
|
||||||
if ( !FT_NEW( zip ) )
|
if ( !FT_QNEW( zip ) )
|
||||||
{
|
{
|
||||||
error = ft_lzw_file_init( zip, stream, source );
|
error = ft_lzw_file_init( zip, stream, source );
|
||||||
if ( error )
|
if ( error )
|
||||||
|
|
Loading…
Reference in New Issue