diff options
author | Elliot Lee <sopwith@src.gnome.org> | 2000-08-08 03:37:22 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 2000-08-08 03:37:22 +0000 |
commit | 0d0b47ba872c90fbad6312c77c12b7380f27ab6c (patch) | |
tree | 2f4cb763e26ec800e8590c94a780d87f9bf992e9 /pango/pango-attributes.c | |
parent | 6651251110e502c5d328d6ad84876377adba481d (diff) | |
download | pango-0d0b47ba872c90fbad6312c77c12b7380f27ab6c.tar.gz |
If the first pango_skip_space fails, remember to free enginepair before
* pango/modules.c: If the first pango_skip_space fails, remember to free enginepair before continuing.
* pango/pango-layout.c (pango_layout_set_attributes): unref old attr list after reffing
new one, in case setting to same thing.
* pango/pango-attributes.c (pango_attr_list_insert_internal): Proper fix from Owen for the
infinite loop.
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r-- | pango/pango-attributes.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c index a081235d..d2349eac 100644 --- a/pango/pango-attributes.c +++ b/pango/pango-attributes.c @@ -740,7 +740,7 @@ pango_attr_list_insert_internal (PangoAttrList *list, { prev = NULL; tmp_list = list->attributes; - while (tmp_list) + while (1) { PangoAttribute *tmp_attr = tmp_list->data; @@ -758,6 +758,8 @@ pango_attr_list_insert_internal (PangoAttrList *list, if (!tmp_list) list->attributes_tail = link; + + break; } prev = tmp_list; |