From cf4ea0186605a54c6d41588f7d85a165c95f3f51 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Fri, 2 Jun 2000 07:59:37 +0000 Subject: Free all the item data. 2000-06-02 Christopher James Lahey * e-icon-bar.c: Free all the item data. svn path=/trunk/; revision=3383 --- widgets/shortcut-bar/ChangeLog | 4 ++++ widgets/shortcut-bar/e-icon-bar.c | 9 +++++++++ 2 files changed, 13 insertions(+) (limited to 'widgets/shortcut-bar') diff --git a/widgets/shortcut-bar/ChangeLog b/widgets/shortcut-bar/ChangeLog index f3baab779a..76c46fabea 100644 --- a/widgets/shortcut-bar/ChangeLog +++ b/widgets/shortcut-bar/ChangeLog @@ -1,3 +1,7 @@ +2000-06-02 Christopher James Lahey + + * e-icon-bar.c: Free all the item data. + 2000-06-01 Ettore Perazzoli * e-shortcut-bar.c (e_shortcut_bar_get_view_type): New function. diff --git a/widgets/shortcut-bar/e-icon-bar.c b/widgets/shortcut-bar/e-icon-bar.c index 68eaeaffa7..731c584fbe 100644 --- a/widgets/shortcut-bar/e-icon-bar.c +++ b/widgets/shortcut-bar/e-icon-bar.c @@ -287,10 +287,19 @@ static void e_icon_bar_destroy (GtkObject *object) { EIconBar *icon_bar; + int item_num; + EIconBarItem *item; icon_bar = E_ICON_BAR (object); GTK_OBJECT_CLASS (parent_class)->destroy (object); + + for (item_num = 0; item_num < icon_bar->items->len; item_num++) { + item = &g_array_index (icon_bar->items, + EIconBarItem, item_num); + if (item->destroy) + item->destroy (item->data); + } g_array_free (icon_bar->items, TRUE); -- cgit v1.2.3