提交 068763b5 编写于 作者: O Owen Taylor 提交者: Owen Taylor

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.
上级 ef074810
...@@ -28,15 +28,12 @@ ...@@ -28,15 +28,12 @@
while (size > new_allocated) while (size > new_allocated)
new_allocated += (new_allocated >> 1) + 8; new_allocated += (new_allocated >> 1) + 8;
error = FT_REALLOC_ARRAY( buffer->in_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ); if ( FT_REALLOC_ARRAY( buffer->in_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
if ( error )
return error; return error;
error = FT_REALLOC_ARRAY( buffer->out_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ); if ( FT_REALLOC_ARRAY( buffer->out_string, buffer->allocated, new_allocated, OTL_GlyphItemRec ) )
if ( error )
return error; return error;
error = FT_REALLOC_ARRAY( buffer->positions, buffer->allocated, new_allocated, OTL_PositionRec ); if ( FT_REALLOC_ARRAY( buffer->positions, buffer->allocated, new_allocated, OTL_PositionRec ) )
if ( error )
return error; return error;
buffer->allocated = new_allocated; buffer->allocated = new_allocated;
...@@ -50,9 +47,8 @@ ...@@ -50,9 +47,8 @@
OTL_Buffer *buffer ) OTL_Buffer *buffer )
{ {
FT_Error error; FT_Error error;
error = FT_ALLOC( *buffer, sizeof( OTL_BufferRec ) ); if ( FT_ALLOC( *buffer, sizeof( OTL_BufferRec ) ) )
if ( error )
return error; return error;
(*buffer)->memory = memory; (*buffer)->memory = memory;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册