[evolution-patches] BUG: 66174 Mem leak in Calendar code because attendees list not freed
- From: Tony Tsui <ttsui9 gmail com>
- To: Evolution Patches List <evolution-patches lists ximian com>
- Subject: [evolution-patches] BUG: 66174 Mem leak in Calendar code because attendees list not freed
- Date: Mon, 20 Sep 2004 08:53:52 +1000
Hi,
Here is a patch to free an attendees list before returning from
existing_attendee() in meeting-page.c
Tony
Index: meeting-page.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/meeting-page.c,v
retrieving revision 1.88
diff -u -p -r1.88 meeting-page.c
--- meeting-page.c 11 Aug 2004 14:44:15 -0000 1.88
+++ meeting-page.c 17 Sep 2004 15:19:13 -0000
@@ -619,8 +619,10 @@ existing_attendee (EMeetingAttendee *ia,
const char *address;
address = itip_strip_mailto (attendee->value);
- if (address && !g_strcasecmp (ia_address, address))
+ if (address && !g_strcasecmp (ia_address, address)) {
+ e_cal_component_free_attendee_list (attendees);
return TRUE;
+ }
}
e_cal_component_free_attendee_list (attendees);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]