Revert error return changes from last commit.

Thu May 27 17:54:24 2004  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/otlbuffer.c: Revert error return changes
        from last commit.
This commit is contained in:
Owen Taylor 2004-05-27 21:55:50 +00:00 committed by Owen Taylor
parent ef07481025
commit 068763b547
1 changed files with 6 additions and 10 deletions

View File

@ -29,14 +29,11 @@
while (size > new_allocated)
new_allocated += (new_allocated >> 1) + 8;
error = FT_REALLOC_ARRAY( buffer->in_string, buffer->allocated, new_allocated, OTL_GlyphItemRec );
if ( error )
if ( FT_REALLOC_ARRAY( buffer->in_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
return error;
error = FT_REALLOC_ARRAY( buffer->out_string, buffer->allocated, new_allocated, OTL_GlyphItemRec );
if ( error )
if ( FT_REALLOC_ARRAY( buffer->out_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
return error;
error = FT_REALLOC_ARRAY( buffer->positions, buffer->allocated, new_allocated, OTL_PositionRec );
if ( error )
if ( FT_REALLOC_ARRAY( buffer->positions, buffer->allocated, new_allocated, OTL_PositionRec ) )
return error;
buffer->allocated = new_allocated;
@ -51,8 +48,7 @@
{
FT_Error error;
error = FT_ALLOC( *buffer, sizeof( OTL_BufferRec ) );
if ( error )
if ( FT_ALLOC( *buffer, sizeof( OTL_BufferRec ) ) )
return error;
(*buffer)->memory = memory;