mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
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:
1 parent
256d219707
commit
f40b7c15e0
2 files changed
+6
-6
No files matched your search
+4
-4
@@ -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++;
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user