From 0d0b47ba872c90fbad6312c77c12b7380f27ab6c Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Tue, 8 Aug 2000 03:37:22 +0000 Subject: 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. --- pango/modules.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pango/modules.c') diff --git a/pango/modules.c b/pango/modules.c index d7d3b838..5d3f9cb9 100644 --- a/pango/modules.c +++ b/pango/modules.c @@ -217,7 +217,10 @@ process_module_file (FILE *module_file) p = line_buf->str; if (!pango_skip_space (&p)) - continue; + { + g_free (pair); + continue; + } /* Break line into words on whitespace */ i = 0; -- cgit v1.2.1