aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets/e-minicard.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets/e-minicard.c')
-rw-r--r--addressbook/gui/widgets/e-minicard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 6173ee2c9a..0d60824c81 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/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);
}
}
}