[evolution-data-server] 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] e-vcard: Fix a minor memory leak for multi-valued parameters
- Date: Sat, 23 Nov 2013 13:45:48 +0000 (UTC)
commit 26eb7865458c59d38c82efb853611f9e7250cb3d
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
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]