Commit 7be0b413 authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Plug leak. [#166561]

2005-02-07  Morten Welinder  <terra@gnome.org>

	* ms-excel-write.c (excel_font_overlay_pango): Plug leak.
	[#166561]
parent 340e42d1
......@@ -37,6 +37,7 @@ Morten:
* Clean out workarounds for old libraries.
* Avoid GnomeFont in printing.
* Fix .dbf import of floating point values. [#166311]
* Plug xls save leak. [#166561]
--------------------------------------------------------------------------
Gnumeric 1.4.2
......
2005-02-07 Morten Welinder <terra@gnome.org>
* ms-excel-write.c (excel_font_overlay_pango): Plug leak.
[#166561]
2004-12-07 Jody Goldberg <jody@gnome.org>
* ms-excel-write.c (excel_write_WINDOW2) : export sheet level rtl
......
......@@ -1319,12 +1319,12 @@ excel_font_new (GnmStyle const *base_style)
static void
excel_font_overlay_pango (ExcelFont *efont, GSList *pango)
{
PangoColor const *c;
PangoAttribute *attr;
GSList *ptr;
for (ptr = pango ; ptr != NULL ; ptr = ptr->next) {
attr = (PangoAttribute *)(ptr->data);
PangoAttribute *attr = ptr->data;
PangoColor const *c;
switch (attr->klass->type) {
case PANGO_ATTR_FAMILY :
g_free (efont->font_name_copy);
......@@ -1365,6 +1365,8 @@ excel_font_overlay_pango (ExcelFont *efont, GSList *pango)
default :
break; /* ignored */
}
pango_attribute_destroy (attr);
}
g_slist_free (pango);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment