[evolution-data-server/gnome-3-10] e-vcard: Fix a minor memory leak for multi-valued parameters
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-3-10] e-vcard: Fix a minor memory leak for multi-valued parameters
- Date: Sat, 23 Nov 2013 13:51:57 +0000 (UTC)
commit 2521cd84e6b3ef4031da765d15a44a93d3e770d0
Author: Philip Withnall <philip withnall collabora co uk>
Date: Sat Nov 23 08:37:48 2013 -0500
e-vcard: Fix a minor memory leak for multi-valued parameters
(cherry picked from commit 26eb7865458c59d38c82efb853611f9e7250cb3d)
addressbook/libebook-contacts/e-vcard.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libebook-contacts/e-vcard.c b/addressbook/libebook-contacts/e-vcard.c
index 1b3979d..4f47253 100644
--- a/addressbook/libebook-contacts/e-vcard.c
+++ b/addressbook/libebook-contacts/e-vcard.c
@@ -2226,6 +2226,8 @@ e_vcard_attribute_remove_param_value (EVCardAttribute *attr,
}
param->values = g_list_delete_link (param->values, l);
+ g_free (l->data);
+
if (param->values == NULL) {
e_vcard_attribute_param_free (param);
attr->params = g_list_remove (attr->params, param);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]