[evolution-couchdb] Unref the contact, not the document, which is NULL



commit c51efac6e461d71c181bb5426a2438bc21fcecfa
Author: Rodrigo Moya <rodrigo gnome-db org>
Date:   Wed Jun 24 17:39:07 2009 +0200

    Unref the contact, not the document, which is NULL

 addressbook/e-book-backend-couchdb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/e-book-backend-couchdb.c b/addressbook/e-book-backend-couchdb.c
index be77c29..d5872a5 100644
--- a/addressbook/e-book-backend-couchdb.c
+++ b/addressbook/e-book-backend-couchdb.c
@@ -327,7 +327,7 @@ e_book_backend_couchdb_create_contact (EBookBackend *backend,
 	document = couch_document_from_contact (couchdb_backend, contact);
 	if (!document) {
 		e_data_book_respond_create (book, opid, GNOME_Evolution_Addressbook_OtherError, NULL);
-		g_object_unref (G_OBJECT (document));
+		g_object_unref (G_OBJECT (contact));
 		return;
 	}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]