From 1761fff007b20c765181f7e89c1cb4fd84c699e3 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Sat, 14 Jun 2003 04:34:20 +0000 Subject: Fix lots of leaks, update for correct use of g_object_get. Some misc 2003-06-13 Larry Ewing * 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 --- addressbook/gui/contact-list-editor/e-contact-list-editor.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/contact-list-editor') diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index 029e7fc06e..ab6ea97096 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -135,7 +135,7 @@ e_contact_list_editor_class_init (EContactListEditorClass *klass) object_class->set_property = e_contact_list_editor_set_property; object_class->get_property = e_contact_list_editor_get_property; - object_class->dispose = e_contact_list_editor_dispose; + /* object_class->dispose = e_contact_list_editor_dispose;*/ g_object_class_install_property (object_class, PROP_BOOK, g_param_spec_object ("book", @@ -968,6 +968,7 @@ extract_info(EContactListEditor *editor) } g_free (dest_xml); } + g_object_unref (email_list); } } @@ -992,6 +993,7 @@ fill_in_info(EContactListEditor *editor) if (file_as) { int position = 0; gtk_editable_insert_text (GTK_EDITABLE (editor->list_name_entry), file_as, strlen (file_as), &position); + g_free (file_as); } gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(editor->visible_addrs_checkbutton), !show_addresses); @@ -1013,6 +1015,7 @@ fill_in_info(EContactListEditor *editor) e_iterator_next (email_iter); } + g_object_unref (email_list); } } -- cgit v1.2.3