aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/minicard
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-05-08 11:39:23 +0800
committerChris Toshok <toshok@src.gnome.org>2000-05-08 11:39:23 +0800
commit62a9c29cca1270bde42ab797b23d1eb9fb76ffc5 (patch)
tree18418142ff702a90af56593596e64fbbc6b59e9f /addressbook/gui/minicard
parent87eebb44a10e298bde27803b20a2b95d1402a886 (diff)
downloadgsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.tar
gsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.tar.gz
gsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.tar.bz2
gsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.tar.lz
gsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.tar.xz
gsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.tar.zst
gsoc2013-evolution-62a9c29cca1270bde42ab797b23d1eb9fb76ffc5.zip
make sure to free the return value of e_card_simple_get.
* gui/minicard/e-minicard.c (remodel): make sure to free the return value of e_card_simple_get. * gui/component/addressbook.c (teardown_table_view): destroy the ECardSimple here, plug memory leak. (create_table_view): use view->simple so we can destroy the ECardSimple later on. svn path=/trunk/; revision=2899
Diffstat (limited to 'addressbook/gui/minicard')
-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);
}
}
}