aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor/e-contact-editor.c
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2003-06-14 12:34:20 +0800
committerLarry Ewing <lewing@src.gnome.org>2003-06-14 12:34:20 +0800
commit1761fff007b20c765181f7e89c1cb4fd84c699e3 (patch)
treecf9abbc667602f494d2eaf5d2054980c4e30585b /addressbook/gui/contact-editor/e-contact-editor.c
parentb3b0f96535867fa18399c4769fdd6bf2168ba144 (diff)
downloadgsoc2013-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/contact-editor/e-contact-editor.c')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index 8ecd2b6a08..f2eb825e70 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -1433,6 +1433,11 @@ e_contact_editor_dispose (GObject *object) {
g_object_unref(e_contact_editor->simple);
e_contact_editor->simple = NULL;
}
+
+ if (e_contact_editor->card) {
+ g_object_unref(e_contact_editor->card);
+ e_contact_editor->card = NULL;
+ }
if (e_contact_editor->book) {
g_object_unref(e_contact_editor->book);
@@ -2160,6 +2165,7 @@ fill_in_card_field(EContactEditor *editor, ECard *card, char *id, char *key)
key, &string,
NULL);
fill_in_field(editor, id, string);
+ g_free (string);
}
static void
@@ -2432,7 +2438,6 @@ fill_in_info(EContactEditor *editor)
ECard *card = editor->card;
if (card) {
char *file_as;
- char *related_contacts;
ECardName *name;
const ECardDate *anniversary;
const ECardDate *bday;
@@ -2443,7 +2448,6 @@ fill_in_info(EContactEditor *editor)
g_object_get (card,
"file_as", &file_as,
- "related_contacts", &related_contacts,
"name", &name,
"anniversary", &anniversary,
"birth_date", &bday,
@@ -2472,7 +2476,8 @@ fill_in_info(EContactEditor *editor)
/* File as has to come after company and name or else it'll get messed up when setting them. */
fill_in_field(editor, "entry-file-as", file_as);
-
+ g_free (file_as);
+
e_card_name_unref(editor->name);
editor->name = e_card_name_ref(name);