diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-07-26 14:50:23 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-07-26 14:50:23 +0000 |
commit | 02bbbd6831467617963dd2e1f439cc28c00784a6 (patch) | |
tree | f335d777f4d99f804130690f4a82adb3e9481f37 | |
parent | 6b0796b6c353b8734176747806ac21b3f583179f (diff) | |
download | pango-02bbbd6831467617963dd2e1f439cc28c00784a6.tar.gz |
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)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-10 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-4 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-6 | 6 | ||||
-rw-r--r-- | ChangeLog.pre-1-8 | 6 | ||||
-rw-r--r-- | pango/opentype/ftxgpos.c | 8 | ||||
-rw-r--r-- | pango/opentype/ftxgsub.c | 4 |
7 files changed, 36 insertions, 6 deletions
@@ -1,3 +1,9 @@ +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) + Sat Jul 26 10:30:24 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix additional places where diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10 index 723b9652..4809c5bc 100644 --- a/ChangeLog.pre-1-10 +++ b/ChangeLog.pre-1-10 @@ -1,3 +1,9 @@ +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) + Sat Jul 26 10:30:24 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix additional places where diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4 index 723b9652..4809c5bc 100644 --- a/ChangeLog.pre-1-4 +++ b/ChangeLog.pre-1-4 @@ -1,3 +1,9 @@ +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) + Sat Jul 26 10:30:24 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix additional places where diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6 index 723b9652..4809c5bc 100644 --- a/ChangeLog.pre-1-6 +++ b/ChangeLog.pre-1-6 @@ -1,3 +1,9 @@ +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) + Sat Jul 26 10:30:24 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix additional places where diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8 index 723b9652..4809c5bc 100644 --- a/ChangeLog.pre-1-8 +++ b/ChangeLog.pre-1-8 @@ -1,3 +1,9 @@ +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) + Sat Jul 26 10:30:24 2003 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgpos.c: Fix additional places where diff --git a/pango/opentype/ftxgpos.c b/pango/opentype/ftxgpos.c index 96eb80ef..10267e0a 100644 --- a/pango/opentype/ftxgpos.c +++ b/pango/opentype/ftxgpos.c @@ -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++; diff --git a/pango/opentype/ftxgsub.c b/pango/opentype/ftxgsub.c index 5ab95588..c2a59baa 100644 --- a/pango/opentype/ftxgsub.c +++ b/pango/opentype/ftxgsub.c @@ -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; } |