diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-05-08 11:39:23 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-05-08 11:39:23 +0800 |
commit | 62a9c29cca1270bde42ab797b23d1eb9fb76ffc5 (patch) | |
tree | 18418142ff702a90af56593596e64fbbc6b59e9f /addressbook/gui/widgets/e-minicard.c | |
parent | 87eebb44a10e298bde27803b20a2b95d1402a886 (diff) | |
download | gsoc2013-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/widgets/e-minicard.c')
-rw-r--r-- | addressbook/gui/widgets/e-minicard.c | 4 |
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); } } } |