aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook/e-book.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend/ebook/e-book.c')
-rw-r--r--addressbook/backend/ebook/e-book.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c
index e236bc04ea..2ec99c1a37 100644
--- a/addressbook/backend/ebook/e-book.c
+++ b/addressbook/backend/ebook/e-book.c
@@ -1086,10 +1086,7 @@ e_book_add_card (EBook *book,
g_free (vcard);
- if (card->book && card->book != book)
- g_object_unref (card->book);
- card->book = book;
- g_object_ref (card->book);
+ e_card_set_book (card, book);
return retval;
}
@@ -1169,10 +1166,7 @@ e_book_commit_card (EBook *book,
g_free (vcard);
- if (card->book && card->book != book)
- g_object_unref (card->book);
- card->book = book;
- g_object_ref (card->book);
+ e_card_set_book (card, book);
return retval;
}