aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/e-day-view-main-item.c4
-rw-r--r--calendar/gui/e-day-view-top-item.c4
-rw-r--r--calendar/gui/e-week-view-event-item.c5
4 files changed, 20 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 4337750958..56fe484855 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2001-08-09 Rodrigo Moya <rodrigo@ximian.com>
+
+ * gui/e-day-view-top-item.c (e_day_view_top_item_draw_long_event):
+ * gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event):
+ * gui/e-week-view-event-item.c (e_week_view_event_item_draw_icons):
+ unref the GdkPixmap and GdkBitmap returned by the function
+ e_categories_config_get_icon_for ()
+
2001-08-09 JP Rosevear <jpr@ximian.com>
* gui/dialogs/task-page.*: Remove progress frame
diff --git a/calendar/gui/e-day-view-main-item.c b/calendar/gui/e-day-view-main-item.c
index 54b0baff3a..eb27595bee 100644
--- a/calendar/gui/e-day-view-main-item.c
+++ b/calendar/gui/e-day-view-main-item.c
@@ -704,6 +704,10 @@ e_day_view_main_item_draw_day_event (EDayViewMainItem *dvmitem,
MIN (E_DAY_VIEW_ICON_HEIGHT,
max_icon_h));
+ gdk_pixmap_unref (pixmap);
+ if (mask != NULL)
+ gdk_bitmap_unref (mask);
+
icon_x += icon_x_inc;
icon_y += icon_y_inc;
}
diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c
index 5c479fc020..405ef31af0 100644
--- a/calendar/gui/e-day-view-top-item.c
+++ b/calendar/gui/e-day-view-top-item.c
@@ -603,6 +603,10 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem,
E_DAY_VIEW_ICON_HEIGHT);
icon_x -= icon_x_inc;
}
+
+ gdk_pixmap_unref (pixmap);
+ if (mask != NULL)
+ gdk_bitmap_unref (mask);
}
cal_component_free_categories_list (categories_list);
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index f304bc9d45..f0b4a167b3 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -636,7 +636,7 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
category = (char *) elem->data;
e_categories_config_get_icon_for (category, &pixmap, &mask);
- if (pixmap == NULL || mask == NULL)
+ if (pixmap == NULL)
continue;
if (icon_x + E_WEEK_VIEW_ICON_WIDTH <= x2) {
@@ -650,6 +650,9 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
E_WEEK_VIEW_ICON_HEIGHT);
icon_x += icon_x_inc;
}
+ gdk_pixmap_unref (pixmap);
+ if (mask != NULL)
+ gdk_bitmap_unref (mask);
}
cal_component_free_categories_list (categories_list);