From 6fe9bc90ac72514248bde0633e7144151a2abe06 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Wed, 16 Aug 2006 14:55:29 +0000 Subject: Don't leak summary_string here. 2006-08-16 Kjartan Maraas * calendar/ea-cal-view-event.c: (ea_cal_view_event_get_name): Don't leak summary_string here. svn path=/trunk/; revision=32550 --- a11y/ChangeLog | 5 +++++ a11y/calendar/ea-cal-view-event.c | 1 + 2 files changed, 6 insertions(+) diff --git a/a11y/ChangeLog b/a11y/ChangeLog index 3a2b259572..f56d6f5208 100644 --- a/a11y/ChangeLog +++ b/a11y/ChangeLog @@ -1,3 +1,8 @@ +2006-08-16 Kjartan Maraas + + * calendar/ea-cal-view-event.c: (ea_cal_view_event_get_name): + Don't leak summary_string here. + 2006-07-13 Andre Klapper * calendar/ea-day-view.c: Added translator comments to diff --git a/a11y/calendar/ea-cal-view-event.c b/a11y/calendar/ea-cal-view-event.c index fa5631a859..ecf31c5ea2 100644 --- a/a11y/calendar/ea-cal-view-event.c +++ b/a11y/calendar/ea-cal-view-event.c @@ -278,6 +278,7 @@ ea_cal_view_event_get_name (AtkObject *accessible) summary_string = g_strdup (_("Calendar Event: It has no summary.")); name_string = g_strdup_printf ("%s %s %s %s", summary_string, alarm_string, recur_string, meeting_string); + g_free (summary_string); ATK_OBJECT_CLASS (parent_class)->set_name (accessible, name_string); #ifdef ACC_DEBUG -- cgit v1.2.3