[gnumeric] ItemBar: plug leak.



commit 3a615014039303d1cde873b95fdf3fc5f38850fa
Author: Morten Welinder <terra gnome org>
Date:   Mon May 9 14:52:41 2011 -0400

    ItemBar: plug leak.

 ChangeLog      |    4 ++++
 NEWS           |    2 +-
 src/item-bar.c |    2 ++
 3 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2161b64..3452e75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-05-09  Morten Welinder  <terra gnome org>
+
+	* src/item-bar.c (item_bar_calc_size): Plug leak.
+
 2011-05-09  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* src/print.c (gnm_print_sheet): only remember settings if we showed
diff --git a/NEWS b/NEWS
index a902a48..6158f7f 100644
--- a/NEWS
+++ b/NEWS
@@ -16,7 +16,7 @@ Andreas:
 
 Morten:
 	* Fix problems with localized function docs.
-	* Plug leak.
+	* Plug leaks.
 	* Fix minor problem reading old xls objects.
 	* Reduce memory usage when new glib is used.  [#644197]
 	* Eliminate col/row infos that are identical to the default.  [#155003]
diff --git a/src/item-bar.c b/src/item-bar.c
index 5cd6e71..c7af62b 100644
--- a/src/item-bar.c
+++ b/src/item-bar.c
@@ -160,6 +160,8 @@ item_bar_calc_size (ItemBar *ib)
 	item_list = pango_itemize (context, "A", 0, 1, attr_list, NULL);
 	pango_attr_list_unref (attr_list);
 
+	if (ib->pango.item)
+	  pango_item_free (ib->pango.item);
 	ib->pango.item = item_list->data;
 	item_list->data = NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]