aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorHiroyuki Ikezoe <poincare@ikezoe.net>2007-10-07 09:26:26 +0800
committerHiroyuki Ikezoe <hiikezoe@src.gnome.org>2007-10-07 09:26:26 +0800
commitf1b6fa21b9bfb030ad838f36abf2107ae190036c (patch)
tree8f0f95bdf136865d444cbad7fdf799ab228fe159 /calendar/gui/e-week-view.c
parente093117ef673e80c54e603ee0ed1dbd487a4bcb6 (diff)
downloadgsoc2013-evolution-f1b6fa21b9bfb030ad838f36abf2107ae190036c.tar.gz
gsoc2013-evolution-f1b6fa21b9bfb030ad838f36abf2107ae190036c.tar.zst
gsoc2013-evolution-f1b6fa21b9bfb030ad838f36abf2107ae190036c.zip
** Fix for bug #455862 Plugged memory leaks.
2007-10-07 Hiroyuki Ikezoe <poincare@ikezoe.net> ** Fix for bug #455862 Plugged memory leaks. * gui/comp-util.c: * gui/comp-util.h:(cal_comp_util_get_n_icons): A new function to get the number of icons owned by ECalComponent. * gui/e-day-view-main-item.c: * gui/e-day-view.c: * gui/e-week-view-event-item.c: * gui/e-week-view.c: Use cal_comp_util_get_n_icons. svn path=/trunk/; revision=34359
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index f2fe95c2b7..6dfd47e331 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2698,8 +2698,6 @@ e_week_view_reshape_event_span (EWeekView *week_view,
/* Calculate how many icons we need to show. */
num_icons = 0;
if (show_icons) {
- GSList *categories_list, *elem;
-
if (e_cal_component_has_alarms (comp))
num_icons++;
if (e_cal_component_has_recurrences (comp) || e_cal_component_is_instance (comp))
@@ -2708,19 +2706,7 @@ e_week_view_reshape_event_span (EWeekView *week_view,
num_icons++;
if (event->different_timezone)
num_icons++;
-
- e_cal_component_get_categories_list (comp, &categories_list);
- for (elem = categories_list; elem; elem = elem->next) {
- char *category;
- GdkPixmap *pixmap = NULL;
- GdkBitmap *mask = NULL;
-
- category = (char *) elem->data;
- if (e_categories_config_get_icon_for (category, &pixmap, &mask))
- num_icons++;
- }
-
- e_cal_component_free_categories_list (categories_list);
+ num_icons += cal_comp_util_get_n_icons (comp);
}
/* Create the background canvas item if necessary. */