summaryrefslogtreecommitdiff
path: root/pango/pango-item.c
diff options
context:
space:
mode:
author3 <alla@lysator.liu.se>2001-01-23 15:15:04 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-01-23 15:15:04 +0000
commitb2e1bc0147a5a91fd477ab23ab8a64be0bb94be4 (patch)
treeef2f6ccc206bfb82817b83428fd4f41592fc2b7f /pango/pango-item.c
parentff7d31690c238cfdf8ed7d071cd34621a2dd7bb2 (diff)
downloadpango-b2e1bc0147a5a91fd477ab23ab8a64be0bb94be4.tar.gz
Free item->extra_attrs list.
2001-01-23 <alla@lysator.liu.se> * pango/pango-item.c (pango_item_free): Free item->extra_attrs list. * pango/pango-layout.c (process_item): Don't leak copy of item. * pango/pango-utils.c (read_config_file): If the config file open fails, don't leak the temp buffers.
Diffstat (limited to 'pango/pango-item.c')
-rw-r--r--pango/pango-item.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pango/pango-item.c b/pango/pango-item.c
index b13b60e9..73f96d2b 100644
--- a/pango/pango-item.c
+++ b/pango/pango-item.c
@@ -81,7 +81,10 @@ void
pango_item_free (PangoItem *item)
{
if (item->extra_attrs)
- g_slist_foreach (item->extra_attrs, (GFunc)pango_attribute_destroy, NULL);
+ {
+ g_slist_foreach (item->extra_attrs, (GFunc)pango_attribute_destroy, NULL);
+ g_slist_free (item->extra_attrs);
+ }
g_object_unref (G_OBJECT (item->analysis.font));