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)
This commit is contained in:
Owen Taylor 2003-07-26 14:50:23 +00:00 committed by Owen Taylor
parent 256d219707
commit f40b7c15e0
2 changed files with 6 additions and 6 deletions

View File

@ -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++;

View File

@ -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;
}