diff options
author | Larry Ewing <lewing@ximian.com> | 2003-06-14 12:34:20 +0800 |
---|---|---|
committer | Larry Ewing <lewing@src.gnome.org> | 2003-06-14 12:34:20 +0800 |
commit | 1761fff007b20c765181f7e89c1cb4fd84c699e3 (patch) | |
tree | cf9abbc667602f494d2eaf5d2054980c4e30585b /addressbook/gui/widgets/e-addressbook-util.c | |
parent | b3b0f96535867fa18399c4769fdd6bf2168ba144 (diff) | |
download | gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.gz gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.bz2 gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.lz gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.xz gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.tar.zst gsoc2013-evolution-1761fff007b20c765181f7e89c1cb4fd84c699e3.zip |
Fix lots of leaks, update for correct use of g_object_get. Some misc
2003-06-13 Larry Ewing <lewing@ximian.com>
* gui/component/addressbook.c:
* gui/component/e-cardlist-model.c:
* gui/component/select-names/e-select-names-text-model.c:
* gui/contact-editor/e-contact-editor.c:
* gui/contact-editor/e-contact-save-as.c:
* gui/contact-list-editor/e-contact-list-editor.c:
* gui/widgets/e-addressbook-table-adapter.c:
* gui/widgets/e-addressbook-util.c:
* gui/widgets/e-addressbook-view.c:
* gui/widgets/e-minicard-view.c:
* gui/widgets/e-minicard.c: Fix lots of leaks, update for correct
use of g_object_get. Some misc cleanups.
svn path=/trunk/; revision=21442
Diffstat (limited to 'addressbook/gui/widgets/e-addressbook-util.c')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-util.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-util.c b/addressbook/gui/widgets/e-addressbook-util.c index ff1b3cd837..1226698486 100644 --- a/addressbook/gui/widgets/e-addressbook-util.c +++ b/addressbook/gui/widgets/e-addressbook-util.c @@ -525,6 +525,7 @@ e_addressbook_send_card_list (GList *cards, EAddressbookDisposition disposition) tempstr = g_strdup_printf (_("VCard for %s"), file_as); description = CORBA_string_dup (tempstr); g_free (tempstr); + g_free (file_as); } show_inline = FALSE; @@ -571,15 +572,17 @@ e_addressbook_send_card_list (GList *cards, EAddressbookDisposition disposition) g_object_get(card, "file_as", &tempstr2, NULL); - if (!tempstr2 || !*tempstr2) + if (!tempstr2 || !*tempstr2) { + g_free (tempstr2); g_object_get(card, "full_name", &tempstr2, NULL); - if (!tempstr2 || !*tempstr2) + } if (!tempstr2 || !*tempstr2) { + g_free (tempstr2); g_object_get(card, "org", &tempstr2, NULL); - if (!tempstr2 || !*tempstr2) { + } if (!tempstr2 || !*tempstr2) { EList *list; EIterator *iterator; g_object_get(card, @@ -590,6 +593,7 @@ e_addressbook_send_card_list (GList *cards, EAddressbookDisposition disposition) tempstr2 = e_iterator_get (iterator); } g_object_unref (iterator); + g_object_unref (list); } if (!tempstr2 || !*tempstr2) @@ -597,6 +601,7 @@ e_addressbook_send_card_list (GList *cards, EAddressbookDisposition disposition) else tempstr = g_strdup_printf ("Contact information for %s", tempstr2); subject = CORBA_string_dup (tempstr); + g_free (tempstr2); g_free (tempstr); } |