aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/minicard/e-minicard.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/minicard/e-minicard.c')
-rw-r--r--addressbook/gui/minicard/e-minicard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/gui/minicard/e-minicard.c b/addressbook/gui/minicard/e-minicard.c
index 6173ee2c9a..0d60824c81 100644
--- a/addressbook/gui/minicard/e-minicard.c
+++ b/addressbook/gui/minicard/e-minicard.c
@@ -547,9 +547,11 @@ remodel( EMinicard *e_minicard )
e_minicard->fields = NULL;
for(field = E_CARD_SIMPLE_FIELD_FULL_NAME; field != E_CARD_SIMPLE_FIELD_LAST && count < 5; field++) {
- if (e_card_simple_get(e_minicard->simple, field)) {
+ char *value = e_card_simple_get(e_minicard->simple, field);
+ if (value) {
add_field(e_minicard, field);
count++;
+ g_free (value);
}
}
}