提交 f40b7c15 编写于 作者: O Owen Taylor 提交者: Owen Taylor

Fix various memory leaks from error returns that should have been jumps to

Sat Jul 26 10:43:20 2003  Owen Taylor  <otaylor@redhat.com>

        * pango/opentype/ftxgsub.c pango/opentype/ftxgpos.c:
        Fix various memory leaks from error returns that should
        have been jumps to cleanup blocks. (From Qt, Lars Knoll)
上级 256d2197
......@@ -4067,7 +4067,7 @@
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
{
if ( error && error != TTO_Err_Not_Covered )
return error;
goto End;
if ( in->pos + j < in->length )
j++;
......@@ -4081,7 +4081,7 @@
error = Get_Class( &cpf2->ClassDef, s_in[j], &classes[i], NULL );
if ( error && error != TTO_Err_Not_Covered )
return error;
goto End;
known_classes = i;
}
......@@ -5456,7 +5456,7 @@
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
{
if ( error && error != TTO_Err_Not_Covered )
return error;
goto End1;
if ( j > curr_pos )
j--;
......@@ -5530,7 +5530,7 @@
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
{
if ( error && error != TTO_Err_Not_Covered )
return error;
goto End1;
if ( curr_pos + j < in->length )
j++;
......
......@@ -2253,7 +2253,7 @@
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
{
if ( error && error != TTO_Err_Not_Covered )
return error;
goto End;
if ( in->pos + j < in->length )
j++;
......@@ -2267,7 +2267,7 @@
error = Get_Class( &csf2->ClassDef, s_in[j], &classes[i], NULL );
if ( error && error != TTO_Err_Not_Covered )
return error;
goto End;
known_classes = i;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册