aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2006-02-25 14:40:28 +0800
committerSushma Rai <rsushma@src.gnome.org>2006-02-25 14:40:28 +0800
commit8ac649ab854d44add24f5464be3e2ee5d117437f (patch)
tree14dc46fd2fab17bbcaeb43bd37b134edefe86f70
parent81956df6e345b7320e4c67ae0a1ac8560ce8ec4c (diff)
downloadgsoc2013-evolution-8ac649ab854d44add24f5464be3e2ee5d117437f.tar.gz
gsoc2013-evolution-8ac649ab854d44add24f5464be3e2ee5d117437f.tar.zst
gsoc2013-evolution-8ac649ab854d44add24f5464be3e2ee5d117437f.zip
Memory leak fixes. See #329251.
svn path=/trunk/; revision=31578
-rw-r--r--plugins/exchange-operations/ChangeLog8
-rw-r--r--plugins/exchange-operations/exchange-calendar.c2
-rw-r--r--plugins/exchange-operations/exchange-contacts.c2
3 files changed, 12 insertions, 0 deletions
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 <rsushma@novell.com>
+
+ * 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 <Irene.Huang@sun.com>
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;
}