diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-03 20:12:04 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-03 20:12:04 +0800 |
commit | eca5223b875706bd304aba1632bd303cf242e2ed (patch) | |
tree | 4b9ac85d32e2cb02a03fc7b77c03a01b1f7562f4 /calendar/gui/e-week-view.c | |
parent | 5c7182a0a85b54920f333a9a035af1d293ab2247 (diff) | |
download | gsoc2013-evolution-eca5223b875706bd304aba1632bd303cf242e2ed.tar.gz gsoc2013-evolution-eca5223b875706bd304aba1632bd303cf242e2ed.tar.zst gsoc2013-evolution-eca5223b875706bd304aba1632bd303cf242e2ed.zip |
Bug 628654 - e_calendar_view_get_tooltips memory leak
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index c842e30377..91abad1b50 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3014,7 +3014,10 @@ tooltip_event_cb (GnomeCanvasItem *item, data->day = -1; data->event_num = event_num; data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, gint)) tooltip_get_view_event; - pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data); + pevent->timeout = g_timeout_add_full ( + G_PRIORITY_DEFAULT, 500, + (GSourceFunc)e_calendar_view_get_tooltips, + data, (GDestroyNotify) g_free); g_object_set_data ((GObject *)view, "tooltip-timeout", GUINT_TO_POINTER (pevent->timeout)); return TRUE; @@ -3642,7 +3645,10 @@ e_week_view_on_text_item_event (GnomeCanvasItem *item, data->day = -1; data->event_num = nevent; data->get_view_event = (ECalendarViewEvent * (*)(ECalendarView *, int, gint)) tooltip_get_view_event; - pevent->timeout = g_timeout_add (500, (GSourceFunc)e_calendar_view_get_tooltips, data); + pevent->timeout = g_timeout_add_full ( + G_PRIORITY_DEFAULT, 500, + (GSourceFunc)e_calendar_view_get_tooltips, + data, (GDestroyNotify) g_free); g_object_set_data ((GObject *)week_view, "tooltip-timeout", GUINT_TO_POINTER (pevent->timeout)); return TRUE; |