diff options
author | Dan Winship <danw@src.gnome.org> | 2003-07-18 00:58:02 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-07-18 00:58:02 +0800 |
commit | 9bcb908ca516ac24874af94ab2a5acc9af437170 (patch) | |
tree | d682c734b40552631413af10ccaefdcf85bc8750 /addressbook/gui/component/addressbook-component.c | |
parent | 732db2157efe52e897004904abf94585eab766b1 (diff) | |
download | gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.tar gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.tar.gz gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.tar.bz2 gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.tar.lz gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.tar.xz gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.tar.zst gsoc2013-evolution-9bcb908ca516ac24874af94ab2a5acc9af437170.zip |
disconnect from model signals to prevent a race condition at shutdown
* gui/widgets/e-addressbook-view.c (e_addressbook_view_dispose):
disconnect from model signals to prevent a race condition at
shutdown where the view gets destroyed and then the model notices
the backend dying before being destroyed itself.
* gui/widgets/e-addressbook-reflow-adapter.c
(addressbook_finalize): add, to free priv.
(e_addressbook_reflow_adapter_class_init): set it up
* gui/component/e-address-popup.c (e_address_popup_set_free_form):
Don't leak strings
* gui/component/addressbook-storage.c (load_source_data): don't
leak xml data.
* gui/component/addressbook-component.c (new_item_cb): don't leak
the new card.
svn path=/trunk/; revision=21858
Diffstat (limited to 'addressbook/gui/component/addressbook-component.c')
-rw-r--r-- | addressbook/gui/component/addressbook-component.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c index f90df5f65a..b49dec3005 100644 --- a/addressbook/gui/component/addressbook-component.c +++ b/addressbook/gui/component/addressbook-component.c @@ -407,12 +407,17 @@ static void new_item_cb (EBook *book, gpointer closure) { gboolean is_list = GPOINTER_TO_INT (closure); + ECard *card; + if (book == NULL) return; + + card = e_card_new (""); if (is_list) - e_addressbook_show_contact_list_editor (book, e_card_new(""), TRUE, TRUE); + e_addressbook_show_contact_list_editor (book, card, TRUE, TRUE); else - e_addressbook_show_contact_editor (book, e_card_new(""), TRUE, TRUE); + e_addressbook_show_contact_editor (book, card, TRUE, TRUE); + g_object_unref (card); } static void |