From 8ac649ab854d44add24f5464be3e2ee5d117437f Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Sat, 25 Feb 2006 06:40:28 +0000 Subject: Memory leak fixes. See #329251. svn path=/trunk/; revision=31578 --- plugins/exchange-operations/ChangeLog | 8 ++++++++ plugins/exchange-operations/exchange-calendar.c | 2 ++ plugins/exchange-operations/exchange-contacts.c | 2 ++ 3 files changed, 12 insertions(+) (limited to 'plugins') diff --git a/plugins/exchange-operations/ChangeLog b/plugins/exchange-operations/ChangeLog index d11a9acf7b..f711b9363c 100644 --- a/plugins/exchange-operations/ChangeLog +++ b/plugins/exchange-operations/ChangeLog @@ -1,3 +1,11 @@ +2006-02-25 Sushma Rai + + * exchange-contacts.c (e_exchange_contacts_get_contacts): Freeing + folder array. + + * exchange-calendar.c (e_exchange_calendar_get_calendars): Similar. + See #329251. + 2006-02-18 Irene Huang Fixes bug #331635 diff --git a/plugins/exchange-operations/exchange-calendar.c b/plugins/exchange-operations/exchange-calendar.c index f0ebfb80e9..e316dc2421 100644 --- a/plugins/exchange-operations/exchange-calendar.c +++ b/plugins/exchange-operations/exchange-calendar.c @@ -105,6 +105,8 @@ e_exchange_calendar_get_calendars (ECalSourceType ftype) } } + if (folder_array) + g_ptr_array_free (folder_array, TRUE); g_free (uri_prefix); g_free (tstring); return calendar_list; diff --git a/plugins/exchange-operations/exchange-contacts.c b/plugins/exchange-operations/exchange-contacts.c index 298445e7cf..67c1d07476 100644 --- a/plugins/exchange-operations/exchange-contacts.c +++ b/plugins/exchange-operations/exchange-contacts.c @@ -91,6 +91,8 @@ e_exchange_contacts_get_contacts (void) } g_free (uri_prefix); + if (folder_array) + g_ptr_array_free (folder_array, TRUE); return contacts_list; } -- cgit