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:
parent
256d219707
commit
f40b7c15e0
|
@ -4067,7 +4067,7 @@
|
||||||
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
||||||
{
|
{
|
||||||
if ( error && error != TTO_Err_Not_Covered )
|
if ( error && error != TTO_Err_Not_Covered )
|
||||||
return error;
|
goto End;
|
||||||
|
|
||||||
if ( in->pos + j < in->length )
|
if ( in->pos + j < in->length )
|
||||||
j++;
|
j++;
|
||||||
|
@ -4081,7 +4081,7 @@
|
||||||
|
|
||||||
error = Get_Class( &cpf2->ClassDef, s_in[j], &classes[i], NULL );
|
error = Get_Class( &cpf2->ClassDef, s_in[j], &classes[i], NULL );
|
||||||
if ( error && error != TTO_Err_Not_Covered )
|
if ( error && error != TTO_Err_Not_Covered )
|
||||||
return error;
|
goto End;
|
||||||
known_classes = i;
|
known_classes = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5456,7 +5456,7 @@
|
||||||
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
||||||
{
|
{
|
||||||
if ( error && error != TTO_Err_Not_Covered )
|
if ( error && error != TTO_Err_Not_Covered )
|
||||||
return error;
|
goto End1;
|
||||||
|
|
||||||
if ( j > curr_pos )
|
if ( j > curr_pos )
|
||||||
j--;
|
j--;
|
||||||
|
@ -5530,7 +5530,7 @@
|
||||||
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
||||||
{
|
{
|
||||||
if ( error && error != TTO_Err_Not_Covered )
|
if ( error && error != TTO_Err_Not_Covered )
|
||||||
return error;
|
goto End1;
|
||||||
|
|
||||||
if ( curr_pos + j < in->length )
|
if ( curr_pos + j < in->length )
|
||||||
j++;
|
j++;
|
||||||
|
|
|
@ -2253,7 +2253,7 @@
|
||||||
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
while ( CHECK_Property( gdef, s_in[j], flags, &property ) )
|
||||||
{
|
{
|
||||||
if ( error && error != TTO_Err_Not_Covered )
|
if ( error && error != TTO_Err_Not_Covered )
|
||||||
return error;
|
goto End;
|
||||||
|
|
||||||
if ( in->pos + j < in->length )
|
if ( in->pos + j < in->length )
|
||||||
j++;
|
j++;
|
||||||
|
@ -2267,7 +2267,7 @@
|
||||||
|
|
||||||
error = Get_Class( &csf2->ClassDef, s_in[j], &classes[i], NULL );
|
error = Get_Class( &csf2->ClassDef, s_in[j], &classes[i], NULL );
|
||||||
if ( error && error != TTO_Err_Not_Covered )
|
if ( error && error != TTO_Err_Not_Covered )
|
||||||
return error;
|
goto End;
|
||||||
known_classes = i;
|
known_classes = i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue